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 is c dot

1 Answers  


Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.

1 Answers  


i want to know details about SBI bank exam and date when to apply and what is the eligibility and the model papers related to it and various post available for Engineering in Information Technology.

1 Answers  


1 2 3 2 5 6 7 8 3 find the next term in the series

3 Answers   Virtusa,


Can have i call constructor in interface?

1 Answers  


c ka base kya hota hai? what is communication?

1 Answers  


PLC Training in chennai ? Best PLC Training center in chennai?

1 Answers  


where are the auto variables stored in c language?

1 Answers  


Can any1 say how this prog logic works... i am weak in thread concept...pls explain step by step

1 Answers  


1. Describe a time when you anticipated potential problems and developed Preventive measures.

1 Answers   Strad Energy,


Name some band definitions?

1 Answers  


How to defaultly populate charges in Clear transactions window for Cash Management?

1 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)