Each call function such that Num + 1

Each call function such that Num + 1

#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int INC(int *x)
{
	return ( * x)++;
}
int main()
{
   int num = 0;
   
    INC(&num);
    INC(&num);
    INC(&num);
    
    printf("%d\n", num);
	
	system("pause");
	return 0;
}

Here Insert Picture Description
Since this function does not know what name at random from a hee hee

return ( * x)++;

The main is to say about higher precedence than ++ *

Nothing
in this blog is water.

I think the fun of watching a

#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
  printf("%d", printf("%d", printf("%d", 43)));
  
	system("pause");
	return 0;
}

Here Insert Picture Description
Explanation

printf return value
returns an int
number of characters to be printed
, for example: int a = 104; printf ( % d ", a); printf returns. 3
printf (" 123 \ n-"); printf returns 4

Published 22 original articles · won praise 5 · Views 3204

Guess you like

Origin blog.csdn.net/weixin_45271990/article/details/104324358