Functions and Pointers questions

Q60

GATE CS 2026 CS-2C ProgrammingNAT2 marks
Consider the following ANSI-C program.
#include <stdio.h>
int main(){
 int *ptr, a, b, c;
 a=5; b=11; c=20;
 ptr=&a; *ptr=c; ptr=&c;
 a=*(&b); c=*ptr-a;
 printf("%d",c);
 return(0);
}
The output of this program is ____________. (answer in integer)

Note: Assume that the program compiles and runs successfully.
Show answer without attempting

Answer: 9

0/10 correct0 marks

Related topics in C Programming