Nikumbh
Member • Jun 20, 2012
C aptitude question
Can anyone tell me how the following code results...
#include
int main()
{
int a=1,b=1,c;
c=a=0? (a=1)😔b=2);
printf("%d %d %d",a,b,c);
getch();
return 0;
}
Results as 2 2 2
clarify me how the variables a , b , c holds the value 2?
#include
int main()
{
int a=1,b=1,c;
c=a=0? (a=1)😔b=2);
printf("%d %d %d",a,b,c);
getch();
return 0;
}
Results as 2 2 2
clarify me how the variables a , b , c holds the value 2?