• retagged by
1,824 views
0 0 votes

What is the output of below code?

#include<stdio.h>
Int check(int);
Int main()
    {

     Int k=35,z;

     z=check(k);

     printf("z=%d\n",z);

     return 0;

    }

int check(int m)

    {

     int m;

     if(m>40)

     return (!m++);

     else

     return (!++m);

    }

1 Answer

1 1 vote

so i think  answer is 0

Position:
Show:

Related questions

7 7 votes
2 2 answers
234
234 views
GO Classes asked Jun 10
234 views
What is the output of the following code?#include <stdio.h int main() { extern int i; printf("%d", i); return 0; } int i = 100;Garbage value $\texttt{0}$ $\texttt{100}$ C...
0 0 votes
1 1 answer
6.8k
6.8k views
cse23 asked Jun 16, 2016
6,759 views
Of the following expressions I A II A [3] III B IV B [3] which will not give compile-time errors if used as left hand sides of assignment statements in a C program? I, ...
9 9 votes
2 2 answers
345
345 views
GO Classes asked Jun 27
345 views
Which of the following correctly describes the declarations?int *a[10]; int (*p)[5];$\texttt{a}$ is a pointer to an array of $10$ integers, and $\texttt{p}$ is an array o...
7 7 votes
1 1 answer
220
220 views
GO Classes asked Jun 10
220 views
Is there any difference between the following declarations?extern int fun(); int fun();Both are identical No difference, except $\texttt{extern int fun();}$ is probably i...