:: C Language Interview Questions ::

Click on >> (Arrow for More Questions) 

  Answer/Explaination : 

g20fy


(Exp):
Since a void pointer is used it can be type casted to any other type pointer. 
vp = &ch stores address of char ch and the next statement prints the value 
stored in vp after type casting it to the proper data type pointer. the output 
is 'g'. Similarly the output from second printf is '20'. The third printf 
statement type casts it to print the string from the 4th value hence the 
output is 'fy'.
 
 

Next >>

 
 

Quick Links

| Home | C Language | All India Entrances | Previous Year Papers | Software Projects

| Project Reports | Job Alerts & Notifications | Technical Interview Questions |

| Audio Visual Notes |