C Programming and Technical Programming Technical

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);
}

Read Solution (Total 8)

C Other Question

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
void fun()
{
// what should be the logic here to print x=20 instead of x=10 in the main function?
}
void main()
{
int x=20;
fun();
x=10;
printf("%d",x);
getch();
}