printf Function Example

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.