Question 11
#include<stdio.h>
int main(void)
{
int a = 1;
int b = 0;
b = a++ + a++;
printf(\"%d %d\",a,b);
return 0;
}
Question 12
#include <stdio.h>
#define VAL 32
int main()
{
char arr[] = \"geeksquiz\";
*(arr + 0) &= ~VAL;
*(arr + 5) &= ~VAL;
printf(\"%s\", arr);
return 0;
}
Question 13
#include <stdio.h>
int main()
{
printf(\"%d\", 1 << 2 + 3 << 4);
return 0;
}
Question 17
Predict the output of following C program
#include <stdio.h>
int main()
{
int i = 0;
do
{
printf(\"GeeqsQuiz \");
i = i++;
}
while (i < 5);
return 0;
}
Question 18
#include <stdio.h>
int main()
{
int i = 12;
int j = sizeof(i++);
printf(\"%d %d\", i, j);
return 0;
}
Question 19
#include<stdio.h>
int main()
{
int a = 2,b = 5;
a = a^b;
b = b^a;
printf(\"%d %d\",a,b);
return 0;
}
Question 20
Predict the output of following program?
#include <stdio.h>
int main() {
int x = 10;
int y = 20;
x += (y += 10);
printf("%d %d", x, y);
return 0;
}
There are 41 questions to complete.