What will be output of the following “C” code?

Loading

Practice Expressions – What will be output of the following “C” code?


#include
void main()
{
int a=10,x=20;a=a++ + 10;
x=x++ + ++a;
printf("%d,%d",a,x);
}

Predict the output of following “C” code:

			  		

Loading

Practice Expressions – Predict the output of following “C” code:


#include
void main()
{
int a=10,x;
x= a-- + ++a;
printf("%d",x);
}

What will be output of the following “c” code?

Loading

Practice Expressions – What will be output of the following “c” code?


#include
int main(){
int x,a=2;
x=++a,++a,a++;
printf("%d %d",x,a);
return 0;
}

What will be output of the following “c” code?

Loading

Practice Expressions – What will be output of the following “c” code?


#include
int main(){
int x,i=2;
x=~-!++i;
printf("%d",x);
return 0;
}

What will be output of the following “c” code?

Loading

Practice Expressions – What will be output of the following “c” code?


#include
int main(){
int num,i=0;
num=-++i+ ++-i;
printf("%d",num);
return 0;

}

What will be output of the following “c” code?

Loading

Practice Expressions – What will be output of the following “c” code?


#include
int main(){
int num,a=15;
num=- - - -a--;
printf("%d %d",num,a);
return 0;
}

What will be output of the following “c” code?

Loading

Practice Expressions – What will be output of the following “c” code?


#include
int main(){
int x,a=3;
x=+ +a+ + +a+ + +5;
printf("%d %d",x,a);
return 0;
}