Question
#include<stdio.h>
#include<string.h>
int main()
{
int register a;
scanf("%d",&a); // say a = 10
printf("%d",a);
return 0;
}
What will be output of following program?
#include<stdio.h>
#include<string.h>
int main()
{
int register a;
scanf("%d",&a); // say a = 10
printf("%d",a);
return 0;
}
Answer: Option D
Was this answer helpful ?
Register data type stores in CPU. So it has not any memory address. Hence we cannot write &a.
Was this answer helpful ?
More Questions on This Topic :
Question 4.
In which header file is the NULL macro defin....
Submit Solution