retagged by
1,024 views
0 votes
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);

    }

retagged by

1 Answer

1 votes
1 votes

so i think  answer is 0

Related questions

0 votes
0 votes
1 answer
1
cse23 asked Jun 16, 2016
5,219 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, ...
1 votes
1 votes
2 answers
3
Akhil01 asked Jul 17, 2016
398 views
Whenever we declare a variable then compiler will not look for other details such as definition of the variable. why is this statement true ?
1 votes
1 votes
2 answers
4
shebya nautiyal asked Apr 5, 2017
1,345 views
Dynamic declaration of 2D arrayint arr=(int ) malloc(r* sizeof(int*));for(i=0; i<r; i++) arr[i]=(int*) malloc(c* sizeof(int));can anyone explain these lines?