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

could i know the selection pattern at hpcl, am an undergradute in chemical technology, but my sujects or course do not figure out antwhere on the lists.

0 Answers  


difference between multi relational OLAP & multidimensional OLAP

1 Answers  


anyone send me aptitude and technical placement paper of Hewitt

0 Answers   Hewitt,


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,


how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10

1 Answers  


Hi friends..cud any help to get QC 9.2 trial..i tried with HP site but did'nt got it..please help me out

0 Answers  


which topics are come from quizs

0 Answers  


need tcs questn papers from 2007 to 2009 plzzzmail to 9015.rama@gmail.com its urgent

0 Answers  


What is Mointer in Operating System?

0 Answers  


what we have to say about hobbies,strong points,weak points

0 Answers   Banking,


differences between pass by reference and pass by value in c language?

0 Answers  


100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos. to b displayed..

7 Answers   Exilant,


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