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 basic step involved in embedded system software development?

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 identify analog and digital in instrumentation

1 Answers   GS Engineering Construction,


reverse a number ( like 1234 into 4321) using malloc in C programming

0 Answers   TCY Online,


Write a nonrecursive routine to reverse a singly linked list in O(N) time.

0 Answers   IIIT, TCS,






1)How to calculate AC Capacity for the Room?

0 Answers  


Suppose 100 SRS are there. & 100 test cases are there. How can we check that wheather a particular field has been tested or not.

0 Answers   Emphasis,


i m doing my 3rd yr with only 6 month left to complete it..within this 6 months which is the best nd useful oracle certification program should i do??pls help me out!!

0 Answers  


how convert the spiral model to prototype model ?

0 Answers  


Explain the following program segment. f(){ int *b; *b=2; }

0 Answers   Geometric Software,


HI!I AM A STUDENT OF B.TECH 3RD YEAR.I PASSED SECONDARY EXAM IN 2001 & HIGHER SECONDARY EXAM 2003.BUT I DROP 1 YEAR AND ADMITTED IN B.TECH 2004 DUE TO FINANCIAL CRISIS.WHEN INTERVIEWER LOOK AT MY C.V HE WANT 2 KNOW WHAT U DID IN THAT MISSED YEAR? I GET PUZZLED 2 ANSWER THIS QUESTION AS I CAN NOT FIND ANY BOLDER ANSWER.PLZ SUGGEST ME SOME BOLD ANS. THAT INTERVIEWER CAN NOT FIND ANY COUNTER QUARY.... 0 2

4 Answers   TCS, Tech Mahindra,


A rectangular beam section of 300 mm width and 500 mm effective depth is reinforced with 4 bars of 20 mm diameter, what shear reinforcement is required to resist 200 kN shear (use working stress method)?

0 Answers  


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)