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

Can 'this' pointer by used in the constructor?

618


What does void main () mean?

741


Why we use stdio h in c?

592


Why do we need a structure?

599


Tell me what is the purpose of 'register' keyword in c language?

626






What is scanf_s in c?

641


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

638


Write a program with dynamically allocation of variable.

614


How can I insert or delete a line (or record) in the middle of a file?

580


Tell us something about keyword 'auto'.

673


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1748


Write a program to check whether a number is prime or not using c?

583


What does struct node * mean?

608


What is difference between array and structure in c?

586


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

648