Heyyy All,

Just a challenge .
A C program with if Else


if(){
/// insert sumthing
print ("in if")
// insert sumting
}

else {
///// insert sumthing
print ("in else");
//// insert sumthing
}

can anyone modify it so that program prints.
if and else both

Answer Posted / asmita negi

OMG.......
Hi Ravinder this looks quite tricky to me.
i am in 3rd yr btech IT.

Pls provide wroking soln for this.

Also can u please please please mail more such trap trick questions to me @

asmita_1991@gmail.com

it would be quite a help.
preparing for exam interview.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State two uses of pointers in C?

640


What is the deal on sprintf_s return value?

643


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1497


What is the explanation for the dangling pointer in c?

680


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

752






What do header files do?

603


What is main function in c?

551


Why do we use header files in c?

580


Why pointers are used?

633


Explain how can I manipulate strings of multibyte characters?

782


What is null pointer constant?

594


How can you check to see whether a symbol is defined?

592


Who developed c language and when?

586


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

655


What is pointer in c?

740