Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)



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

Answer / Jinkal Chaudhary

If `x` is initially 5, then `x += 15` would increase its value by 15. So, the new value of `x` would be 20.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are the different types of control structures?

1 Answers  


difference between loading and linking

1 Answers  


What is memmove?

1 Answers   Oracle,


What is gets() function?

1 Answers  


Explain a pre-processor and its advantages.

1 Answers  


i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

2 Answers  


main() { int a[10]; printf("%d",*a+1-*a+3); }

2 Answers  


prototype of sine function.

2 Answers   Cadence,


Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

4 Answers   Accenture,


What are enums in c?

1 Answers  


code for quick sort?

1 Answers  


What is int main () in c?

1 Answers  


Categories