What is the fallacy in the following program segment ?

int *f1()
{
int a=5;
return &a;
}
f()
int *b=f1()
int c=*b;
}



What is the fallacy in the following program segment ? int *f1() { int a=5; return &a; } ..

Answer / vaishav bachhav

function f() has no opening brackets.
and the first line of f() has no semicolon.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

what are the artifacts in coding phase in SDLC????

0 Answers  


plz send me interview questions & answers of Data Structure

0 Answers  


as we know that java is a platform independent language, but we need jvm for the same operating system why?

0 Answers  


i have studied my Btech up to 5years, is any problem with duration of the year.if the us embassy interviewer ask me why you have got 5 years to complete your btech,can you please give me answer.And i got less percentage.

1 Answers   US Consulate,


how to increase the water ring vacuum pump efficiency?

0 Answers  






How do you remove meta only for the root slice? remaining slices should run under meta?

0 Answers  


What is diff b/w TON and BTU for Air conditioner?

0 Answers  


how can i implement a program of polynomial adding,multiplication,through c language???

0 Answers  


how is the config take place and from reciever side how will process the data into internal table

0 Answers  


What is Lease Line?Why power cord is not required to NT Boxex on which lease is connected ?Why we use use NT BOXEs for ISDN and Lease line?

0 Answers   HCL,


write a program to accept 2 numbers from user calculate sum of each digit,reverse the orignal number and display

2 Answers  


what is test initiation criteria in software testing

2 Answers   CybAge, Seed Infotech,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)