A
Q. What will be the output of the following C code?
Code:
#include <stdio.h>
int main(){
int x = 10, *ptr;
ptr = &x;
*ptr = 20;
printf("%d", x);
}
int main(){
int x = 10, *ptr;
ptr = &x;
*ptr = 20;
printf("%d", x);
}
- Correct Answer - Option(B)
- Views: 18
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.