Guess what it's running out of? always run the most inner brackets, printf ("%d", i) so first output 43, because the printf () function value is the output of how many bits, so immediately after the output of 2, the same, the output of 2 is 1 bits, so the outer layer immediately after the output of 1, the last is 4321
#include <stdio.h> #include <stdlib.h>int main () {int m = 43;printf ("%d\n", printf ("%d", printf ("%d", m))); System ("pause"); return 0;}
My strstr: Find a substring in a string
#include <stdio.h>//#include <string.h>//#include <stdlib.h>//#include <assert.h>//char * MY_STRSTR (const char *ps, const char *pt)//{//int s = strlen (PS);//int t = strlen (PT);//int i = 0;//int j = 0;//as SERT (PS&&PT);//while (*ps! = ') "//{//if (ps[i] = = Pt[j])//{//i++;//j++;//}//else//{//i = i-j + 1;//j= 0 ;//}//if (t = = j)//break;//}//return Ps+i-j;//}//int Main ()//{//char *psource = "ABCDEFGGG";//char *ptarget = "EFG";//ch Ar *p = my_strstr (Psource, Ptarget);//printf ("%s\n", p);//system ("pause");//return 0;//}
This article is from the "Small Stop" blog, please be sure to keep this source http://10541556.blog.51cto.com/10531556/1696284
printf Function Example