1. Study the following program:

main()  

{  

  int a = 1, b = 2, c = 3:  

  printf("%d", a + = (a + = 3, 5, a))  

}  

2. What does this declaration mean?

int x : 4;  

3. What is the result after execution of the following code if a is 10, b is 5, and c is 10?

If ((a > b) && (a <= c))  

        a = a + 1;  

else  

        c = c+1;  

4. Which of the following best describes the ordering of destructor calls for stack-resident objects in a routine?

5. What is the output of this statement "printf("%d", (a++))"?

6. What will this program print?

main()  

{  

  int i = 2;  

  {  

    int i = 4, j = 5;  

     printf("%d %d", i, j);  

  }    

  printf("%d %d", i, j);  

}  

7. In the C language, the constant is defined _______.

8. How many times will the following loop execute?

for(j = 1; j <= 10; j = j-1)  

9. Study the following program:

main()  

{printf("javatpoint");  

main();}  

What will be the output of this program?

10. What is required in each C program?

Submit
Answered 0 of 10 (0%)