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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Which escape character can be used to beep from speaker in C?
  2. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  3. The function fopen() on failure returns---------------------.
  4. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
  5. the value *(&i) is same as printing the value of address of i.
  6. A C variable cannot start with
  7. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  8. Which one of the following is not a valid reserved keyword in C++
  9. Nested macros are allowed.
  10. A function to be called must be ended with a----------------
  11. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  12. gets() and puts() are unformatted I/O functions.
  13. continue statement is used
  14. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  15. Which classes allow primitive types to be accessed as objects?
  16. For 16bit compiler allowable range for integer constants is ______ ?
  17. Which of the following is not a preprocessor directive
  18. # define PI = 8;' is the correct declaration of macros.
  19. void' is a datatype.
  20. It is necessary to initialize the array at the time of declaration.
  21. What is Keywords?
  22. Structures within structures cannot be created.
  23. C is a ___ language
  24. Single operations involving entire arrays are permitted in C.
  25. fprintf()function can be used to write into console.
  26. Which of the following language is predecessor to C Programming Language?
  27. The main() function can be called from any other function.
  28. The printf() function retunes which value when an error occurs?
  29. There are total ------ numbers of operators in 'C'.
  30. Which of the following correctly describes C++ language?