Question PRG-C-0036
EasyWhat is the output of this program?
#include <stdio.h>
int main() {
int x = 10;
x += 5;
x *= 2;
printf("%d", x);
return 0;
}
- A.
25
- B.
15
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main() {
int x = 10;
x += 5;
x *= 2;
printf("%d", x);
return 0;
}
25
15
Sign up free to see the answer and a step-by-step explanation.
20
30