PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1.9 What will be the output of the following program?
main()
{
int a, *ptr, b, c;
a = 25;
ptr = &a;
b = a + 30;
c = *ptr;
printf(“%d %d %d”, a, b, c);
}
A) 25, 25, 25
B) 25, 55, 25
C) 25, 55, 25
D) None of the above

Leave a Reply