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 = 0; while (a<=50) for(;;) if(++a % 50==0)…
  2. printf() is not a library function.
  3. Which of the following expressions is wrong
  4. enum helps to create user defined datatype.
  5. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  6. unsigned char has a range from 0 to ------------
  7. C programs are converted into machine language with the help of
  8. Character data types cannot be declared as unsigned.
  9. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  10. Nested macros are allowed.
  11. Identify the wrong statement
  12. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  13. What is the difference between overloaded functions and overridden functions?
  14. Which of the following is not a preprocessor directive
  15. When a user defined function is defined in program, then it has to be called at least once from the…
  16. What will be output if you will compile and execute the following c code?#include int main(){ float…
  17. Variables declared as register storage type gets stored in CPU registers.
  18. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  19. Which options shows the correct hierarchy of arithmetic operators
  20. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  21. Which one of the following is not a valid reserved keyword in C++
  22. Operation between an integer and float always yields a float result.
  23. Which of the following is the most preferred way of throwing and handling exceptions?
  24. Which one of the following is not a fundamental data type in C++
  25. The expression "b = 3 ^ 2;" will evaluate b = 9.
  26. A pointer is an indication of the variable to be accessed next.
  27. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  28. Every if statement can be converted into an equivalent switch statement.
  29. Which of the following is not recommended in a header file?
  30. In the expression - 'x + y + 3z =20'