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
State two uses of pointers in C?
What is the deal on sprintf_s return value?
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.
What is the explanation for the dangling pointer in c?
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
What do header files do?
What is main function in c?
Why do we use header files in c?
Why pointers are used?
Explain how can I manipulate strings of multibyte characters?
What is null pointer constant?
How can you check to see whether a symbol is defined?
Who developed c language and when?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is pointer in c?