ExamVeda
Login
Home
This question belongs to C Program C Miscellaneous
C Miscellaneous
?

Determine Output:
#include<stdio.h>
void main()
{
      register i=5;
      char j[]= "hello";
      printf("%s %d", j, i);
}

Answer & Solution
Correct Answer: Option A

If you declare i as register compiler will treat it as ordinary integer and it will take integer value. i value may be stored either in register or in memory.

Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
Examveda
Examveda 10 years ago
If you declare i as register compiler will treat it as ordinary integer and it will take integer value. i value may be stored either in register or in memory.
Sriram Dandamudi
Sriram Dandamudi 10 years ago
answer is error(c).since i is not declared as interger data type.