Home

What will be output if you will compile and execute the following c code?


#include 
int main(){
char c=125;
c=c+10;
printf("%d",c);
return 0;
}

 

A. 135

B. +INF

C. -121

D. -135

You can do it
  1. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  2. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  3. The size of signed integer is ------ bytes.
  4. A C variable cannot start with
  5. unsigned char has a range from 0 to ------------
  6. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  7. Which one of the following is not a fundamental data type in C++
  8. A function to be called must be ended with a----------------
  9. What is C Tokens?
  10. Left shift operator rotates the bits on the left and places them to the right.
  11. A declaration float a, b; occupies ___ of memory
  12. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  13. What is Keywords?
  14. Bitwise operators can operate upon?
  15. C programming language was developed by
  16. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  17. What is an array?
  18. perror( ) function used to ?
  19. Character data types cannot be declared as unsigned.
  20. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  21. All elements of a structure are allocated contiguous memory locations.
  22. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  23. What is the right way to access value of structure variable book{ price, page }?
  24. Which of the following is not true about preprocessor directives
  25. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  26. The main() function can call itself recursively.
  27. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  28. What will be output if you will compile and execute the following c code?#include int main(){ float…
  29. For 16bit compiler allowable range for integer constants is ______ ?
  30. Only one break can be used in one loop.