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

WHY SHOULD I HIRE YOU

1525


what is the difference b/w "print" and "sprint" in sql?

1366


How will a tester be sure that He’s covered the entire functionality in his Test case and not missed out anything?

1449


what does static variable mean in c language?

1805


project plan for bug tracking system?

1594






how do we calculate physical address if logical address is given in the question?

2471


my first question in huawei was ....1)Tell me about your self 2) oops concept 3)logic gates 4)ram and rom ,what is cache memory nd where it is located 5)diffrence between file system and data base 6) procedure of operating system 7)what is c# 8)high level language and machine language 9) and from mobile networkin !!!! hope thz will help you

1476


pls i need a help from you friends, is there anybody who can help me out with the question been ask from the USA embassy. i will be going for interview next month pls help me

1338


Please derive the formula for the area of a circle.

622


nohup sort employees > list 2 > error out & what will happen?

2912


How does an aeroplane stay airborne and how can some aeroplanes fly upside down?

582


if u have question papers/sample papers of any of PSUs,plz send me at dinesh.pandey3@gmail.com

1522


what is recursion in c language?

1431


How to score well in examination of MCA(engg) december 2012? please reply soon........

1396


what are differences b/w EIA 449 and EIA 530?

1695