Question 111
[Q.11] निम्नलिखित C भाषा कोड का आउटपुट क्या है?
void main()
{
int a,b,c;
a=b=c=1;
c=++a||++b&&++c;
printf("a= %dc=%d",a,c);
}Detailed Solution
++a makes a equal to 2. Since ++a is true, the OR operator short-circuits the remaining expression. Therefore c is assigned 1.