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)
-
- 3. i.e order of execution of all the operators available in c
- 8 years agoHelpfull: Yes(1) No(0)
- operator performe the operations on operands ans:1
- 8 years agoHelpfull: Yes(0) No(1)
- All the operators in C have their own priorities.
Therefore,Ans[3]:order of execution of all operators available in C. - 8 years agoHelpfull: Yes(0) No(0)
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);
}