Consider the following ANSI-C program.
The output of this program is ________. (answer in integer)
Note: Assume that the program compiles and runs successfully.
c
Programming in CPointers, Multi-Dimensional Arrays, StructuresNAT2 marksMedium
1#include <stdio.h>
2int main( ) {
3 int *ptr, a, b, c;
4 a=5; b=11; c=20;
5 ptr=&a; *ptr=c; ptr=&c;
6 a=*(&b); c=*ptr-a;
7 printf("%d",c);
8 return(0);
9}
10A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.