Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Tuesday 26 March 2019

Dangling Pointer Solution

The solution to this problem: 
Make the variable x is a static variable. 

C program:




















Output: 26

0 comments:

Post a Comment