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
Why is c so popular?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What are the types of i/o functions?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Explain what happens if you free a pointer twice?
Describe dynamic data structure in c programming language?
What are the advantages of external class?
What are the salient features of c languages?
What is an array? What the different types of arrays in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is preprocessor with example?
Explain can the sizeof operator be used to tell the size of an array passed to a function?