adspace


What is the fallacy in the following program segment ?

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

please send me latest Aptitude Test paper

2277


Hi, I am appearing for the ISRO exam for the post of Scientist/ Engineer to be held on 26th April,09. Can anyone help me regarding the same? I want to know about the exam pattern and the syllabus. If anyone could share your experience or sample papers for the same at khadhar786@rediffmail.com? It would be very useful for me. Thanks.

2211


who is your role modal give in few sentances

2236


Please if anybody have Vizag Steel Entrance exam papers or atleast Pattern of exam.Then please forward to my email- id: :srikanth.avanthi@gmail.com

2044


I am going to appear for ISRO written test on 26 th april 2009 .So kindly forward me sample previous question paper for ISRO for BE Computer Science . My mail id : jothychristiya@gmail.com

2679


why u r shifting from engineering to other field ?

2270


Hi All... PLease send me if anyone have "Information Security Officer" Aptitude papers. Please Mail me at mannusanghi@gmail.com

1937


pls send me the e-book for verbal and non verbal reasoning of R S aggarwall

2315


can anybody send me the technical papers of hewitt associates pls...I cleared aps n GD n has only less time for technical round?

2289


Please explain why you are suitable for the position that you have applied for?

2124


sir ,,kindly provide me 10 year old solved question papers of gate ,i am from CS. branch...

2122


i need NIC written test paper or give me any idea about written exam.Plz send me at smileever8@gmail.com

2354


please provide me the type of questions or question pattern of bally.

1969


Hi i'm richa piplani applied for ATC(IT) if u have the syllabus & old question papers forward me.I will be very much thankful to you. piplani.richa@gmail.com and sonu_pips@yahoo.co.in

2091


Draw the diagram showing the function stack, illustrating the variables that were pushed on the stack at the point when function f2 has been introduced . type def struct { double x,double y} point; } main( int argc, char *arg[3]) { double a; int b,c; f1(a,b); } f1(double x, int y) {point p; stack int n; f2(p,x,y) } f2(point p, double angle) { int i,j,k,int max;

2137