0
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 10, *p = &x, **q = &p;
**q += 5;
*p *= 2;
printf("%d %d", x, **q);
return 0;
}- A15 15
- B20 20
- C30 15
- D30 30
Correct answer: D
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 10, *p = &x, **q = &p;
**q += 5;
*p *= 2;
printf("%d %d", x, **q);
return 0;
}