Programming Languages C Objective
Mar 08, 2013

What will be output of following c program? 

int *call(); 

void main(){ 

int *ptr; 

ptr=call(); 

clrscr(); 

printf("%d",*ptr); 

int * call(){ 

int x=25; 

++x; 

return &x; 

 

Choose the correct answer:
A) Infinite loop
B) 26
C) 24
D) 30
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback