What will be output of the following “c” code?
![]()
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;
} ![]()
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;
} ![]()
Practice Variable Number of Arguments – What will be output of the following “c” code?
#include
int main(){
printf("%c",*"abcde");
return 0;
} ![]()
Practice Variable Number of Arguments – What will be output of the following “c” code?
#include
int main(){
float x;
x=0.35==3.5/10;
printf("%f",x);
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 output of the following “c” code?
#include
int main(){
int num,i=0;
num=-++i+ ++-i;
printf("%d",num);
return 0;
} ![]()
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;
} ![]()
Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[]={6,12,18,24};
int x=0;
x=arr[1]+(arr[1]=2);
printf("%d",x); return 0;
} ![]()
Practice Basic Concept – What will be output of the following “c” code?
#include
int main(){
printf("%d","abcde"-"abcde");
return 0;
} ![]()
Practice Pointers – What will be output of the following “c” code?
#include
int main(){
int i;
static double *p,*q,*r,*s,t=5.0;
double **arr[]={&p,&q,&r,&s};
*p=*q=*r=*s=t;
for(i=0;i<4;i++)
printf("%.0f ",**arr[i]);
return 0;
} ![]()
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;
} ![]()
Practice Control Instructions – What will be output of the following “c” code?
#include
int main() {
int i;
for(i=0;i<5;i++){
int i=10;
printf(" %d",i);
i++;
}
return 0;
} ![]()
Practice Variable Number of Arguments – What is the output of the following C Program?
#include
int main()
{
static int i=i++,j=j++,k=k++;
printf("%d%d%d",i,j,k);
return 0;
} ![]()
Practice Control Instructions – What is the output of the following C Program?
#include
void main()
{
signed char i=0;
for(;i>=0;i++) ;
printf("%d
",i);
} ![]()
Practice Variable Number of Arguments – What is the output of the following C Program?
#include
void main()
{
unsigned int i=65000;
while(i++!=0);
printf("%d",i);
}