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
Where is c used?
write an algorithm to display a square matrix.
Can a pointer be static?
I need a sort of an approximate strcmp routine?
What is pass by reference in c?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What's the best way of making my program efficient?
What are derived data types in c?
Hi can anyone tell what is a start up code?
Write programs for String Reversal & Palindrome check
What are identifiers in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is the need of structure in c?
What is unary operator?