2 votes 2 votes Q. What is the output of following program? int main(){ register int Data =10; int *piSumData = NULL; piSumData = &Data; *piSumData = 5; printf("%d",*piSumData); } 1. Run time error 2. garbage value 3. 10 4. 5 Programming in C storage-classes-in-c + – K ANKITH KUMAR asked Aug 8, 2018 • edited Aug 8, 2018 by srestha K ANKITH KUMAR 1.1k views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments K ANKITH KUMAR commented Aug 9, 2018 reply Follow Share But I executed this code on Linux and it is giving compile time error. @Dharmendra Verma 0 votes 0 votes the_bob commented Nov 10, 2018 reply Follow Share I executed the above code snippet on geeksforgeeks.org and I got compile error, but not runtime error. Can anyone please explain what the correct answer should be ? 0 votes 0 votes the_bob commented Nov 10, 2018 reply Follow Share I guess the following 2 links explain the required concept for this question... https://aticleworld.com/storage-class/ https://www.quora.com/How-can-you-access-a-memory-location-using-C 0 votes 0 votes Please log in or register to add a comment.