Skip to content
Related Articles
Open in App
Not now

Related Articles

ISRO | ISRO CS 2018 | Question 60

Improve Article
Save Article
Like Article
  • Difficulty Level : Hard
  • Last Updated : 10 Jul, 2018
Improve Article
Save Article
Like Article

Consider the following program

main()
{
int x = 1;
printf ("%d", (*char(char *)&x)) ;
}

Assuming required header files are included and if the machine in which this program is executed is little-endian, then the output will be

(A) 0
(B) 99999999
(C) 1
(D) unpredictable


Answer: (D)

Explanation:

Quiz of this Question

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!