Showing posts with label codes. Show all posts
Showing posts with label codes. Show all posts

Android Phone Secret Codes

Samsung galaxy sony xperia htc Android secret codes enter dial factory hard reset format service test mode debug diagnosis check up wifi GPRS GPS sensor test bluetooth MAC address ip address LCD display touch screen test
Dialing the code
Here in this post, I am listing down some secret codes for Android phones.

*#*#4636#*#*   :Phone info (packet data), batttery info,usage statistics,wifi info
*#*#7780#*#*  :Factory reset
*2767*3855#   :Format Phone
*#*#197328640#*#*  :Service mode (version info,Factory test,and many debugs)

String Comparison in C and C++ Languages and Working of strcmp function

In both C and C++ programming languages, an inbuilt function strcmp() is used to compare two strings. This function is defined in string.h header file. So, to use this function, you have to include the header file string.h in the program. Most of the people ( i mean beginners) have a wrong idea about the working of the this function. I also had made some false assumptions. This function takes two strings as arguments. And it compares the two strings using the ASCII equivalent of each character. Some of the false ideas about this function are:
  • The function returns 1 when the strings are equal and 0 when they are not equal
  • The function returns 1 when they are not equal
  • The function returns 1 when the first string is greater than the second and returns -1 when the first one is less than the second one

The ASCII Character Set or ASCII Chart

ASCII stands for American Standard Code for Information Interchange. ASCII is a 7 bit alphanumeric code used in computers. Each character is assigned with a positive integer (in between 0 and 127). This is the most popular coding system. The following is the ASCII chart of characters and corresponding integer value.