C Programming and Technical Programming Output

Operator precedence decides the

[1] order of execution of arithmetic operators
[2] order of execution of logical operators
[3] order of execution of all the operators
available in C
[4] nature of bitwise operators only

Read Solution (Total 3)

C Other Question

What will be the output of the following C program?

#include
void main(void)
{
int a=5, b, c,d,e;
e= (b=++a) + (c=a++) + (d=++a) ;
printf("%d, %d, %d, %d, %d", a,b,c,d,e);

return 0;
}

[1] 4, 5, 2, 3
[2] 8, 6, 7, 1
[3] 4, 6, 9, 2
[4] 8, 6, 6, 7
void main(){
int a=1;
void xyz(int , int);
xyz(++a,a++);
xyz(a++,++a);
printf("%d",a);
}
void xyz(int x, inty){
printf("%d%d",x,y);
}