What would happen to X in this expression: X += 15; (assuming the value of X is 5)



What would happen to X in this expression: X += 15; (assuming the value of X is 5)..

Answer / Thakur Shravyam

In C, the expression X += 15 increments the value of X by 15. If the initial value of X is 5, the resulting value after executing the expression would be 20.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Is the following code legal? struct a { int x; struct a b; }

4 Answers  


Explain why C language is procedural?

1 Answers   GE,


send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?

0 Answers   TCS,


find the sum of two matrices and WAP for it.

1 Answers   Huawei,


Give me basis knowledge of c , c++...

5 Answers  


What is a protocol in c?

1 Answers  


Can you think of a logic behind the game minesweeper.

1 Answers  


write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...

1 Answers   Philips,


How main function is called in c?

1 Answers  


main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }

4 Answers   Vector, Vector India,


Who is invented by c?

24 Answers   Infosys, Mphasis,


What is time null in c?

1 Answers  


Categories