Q10
Consider the following program in C language:
#include <stdio.h>
main()
{
int i;
int *pi = &i;
scanf("%d",pi);
printf("%d\n", i+5);
}Which one of the following statements is TRUE?
Show answer without attempting
Answer: D
GATE CS · C Programming · 1 questions
1 Functions and Pointers question from GATE CS papers (2014), each with the official answer key. Part of C Programming. Answer any question right here and it is marked straight away, or practise them one at a time.
#include <stdio.h>
main()
{
int i;
int *pi = &i;
scanf("%d",pi);
printf("%d\n", i+5);
}Answer: D
0/10 correct0 marks