What will be the output of the below C program.
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 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 is the output of the following C program?
void main()
{
int i= 0;
while (i<5) {
sum (i);
i++;
} }
void sum (i)
int i;
{
static K;
print{ ("%d",K+i);
K++;
}
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;
}
Practice Expressions – What will be output of the following “c” code?
#include
#define plus +
#define minus +plus
int main(){
long x,i=3;
x=++i;
printf("%ld",x);
return 0;
}
Practice Expressions – What will be output of the following “c” code?
#include
void main(){
int num,a=10;
num=a--- -a--;
printf("%d %d",num,a);
}
Practice Expressions – What will be output of the following “c” code?
#include
int main()
{
int i=5,j=6,z;
printf("%d",i+++j);
return 0;
}
Practice Expressions – What will be output of the following “c” code?
#include
#include
void main(){
int a,i=4;
a=- -i+- -i+- -5;
printf("%d %d",a,i);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main()
{
int i=5;
printf("%d",i+++++i);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main(){
int i=5,j=10,num;
num=(++i,++j,i+j);
printf("%d %d %d",num,i,j);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main() {
int i=-1,j=-1,k=0,l=2,m;
m = i++ && j++ && k++ || l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
Practice Expressions – What will be output of the following “c” code?
#include
void main ( )
{
int c = --2;
printf("%d" , c);
}
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?
void main()
{
static int ver =5;
printf("%d", ver--);
if( ver);
main();
}
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 will be output of the following “c” code?
#include
void main()
{
printf("%d",++5);
}