What will be output of the following “c” code?
Practice Expressions – What will be output of the following “c” code?
#include
void main ( )
{
int i=5;
printf("%d %d %d %d %d", i++, i--,++i, --i, i);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main ( )
{
int i=5;
printf("%d %d %d %d %d", i++, i--,++i, --i, i);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main()
{
int x =5;
x = (x++) + (++x) + (x) +(x--) + (--x);
printf("%d",x);
}
Practice Expressions – What is the output of the following C Program?
#include
void main()
{
printf("%d", (a++));
}
Practice Expressions – What will be the final value of num1 and num2?
#include
int main()
{
long num1 = 0;
long num2 = 0;
long *pnum = NULL;
pnum = &num1;
*pnum = 2;
++num2;
num2 += *pnum;
pnum = &num2;
++*pnum;
return 0;
}
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;
}
Practice Expressions – What will be the output of the below C program.?
#include
int main()
{
int i=i++,j=j++,k=k++;
printf("%d%d%d",i,j,k);
return 0;
}
Practice Expressions – What will be output of the following “c” code?
#include
long fu(int);
char vect[]={1,2,3,4,5};
void main(){
int i=1;
i=fu(++i)+ ++vect[++i]+ ++i+fu(i++);
printf("%d",i);
}
long fu(int x){
return x*3;
}