Find Largest and Second Largest from the given array in C

#include <stdio.h> #include <limits.h> // For INT_MIN #define MAX_SIZE 1000 // Maximum array size int main() { int arr[MAX_SIZE], size, i; int max1, max2; /* Input size of the array */ printf(“Enter size of the array (1-1000): “); scanf(“%d”, &size); /* Input array elements */ printf(“Enter elements in the array: “); for(i=0; i<size; i++) {…

How to ask user for rate the app manually in android

void rateThisApp() { final SweetAlertDialog pDialog = new SweetAlertDialog(HomeActivity.this, SweetAlertDialog.WARNING_TYPE); pDialog.getProgressHelper().setBarColor(R.color.colorPrimaryDark); pDialog.setTitleText(“If you like then please 5 star.”); pDialog.setConfirmText(“Rate 5 star”); pDialog.setConfirmClickListener(sDialog -> { sDialog.dismissWithAnimation();…

Android custom navigation menu icon

Generally the default navigation drawer code is DrawerLayout drawer = findViewById(R.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.addDrawerListener(toggle); toggle.syncState(); NavigationView navigationView…