Home Discussion Board

Sponsors

Companies Schedule

No events
Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re-Hughes-22 Find the output of the following C programvoid f(char *p){ p=(char *) malloc(6);strcpy(p,"hello");}void (1 viewing) (1) Guest
Loads of real interview questions.
Go to bottom Post Reply Favoured: 0
TOPIC: Re-Hughes-22 Find the output of the following C programvoid f(char *p){ p=(char *) malloc(6);strcpy(p,"hello");}void
#42494
abhayaachala (User)
Platinum Boarder
Posts: 363
graphgraph
User Offline Click here to see the profile of this user
Hughes-22 Find the output of the following C programvoid f(char *p){ p=(char *) malloc(6);strcpy(p,"hello");}void 5 Months ago Karma: 0  
Find the output of the following C programvoid f(char *p){ p=(char *)
malloc(6);strcpy(p,"hello";}void main( ){ char
*P="bye";f(p);printf("%s',p);}
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#42495
a26 (User)
Platinum Boarder
Posts: 548
graph
User Offline Click here to see the profile of this user
Re-Hughes-22 Find the output of the following C programvoid f(char *p){ p=(char *) malloc(6);strcpy(p,"hello");}void 5 Months ago Karma: 0  
bye will get printed
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#42496
alkaakuti (User)
Platinum Boarder
Posts: 344
graphgraph
User Offline Click here to see the profile of this user
Re-Hughes-22 Find the output of the following C programvoid f(char *p){ p=(char *) malloc(6);strcpy(p,"hello");}void 5 Months ago Karma: 0  
Error in the program: Undefined symbol p.Warning in the program: P has
assingned a valur that is never used.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Bookmark and Share