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

Answers were Sorted based on User's Feedback



Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print (..

Answer / ravinderrawat1989

Try...
sumthing tricky waiting after this

Is This Answer Correct ?    2 Yes 0 No

Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print (..

Answer / naveen

Program:

void main()
{
int check =1;
if(check==1)
{
printf(" If Block\n");
goto condition1;
}
else
{
condition1:
printf("Else Block");
}
}

Output:

If Block
Else Block

Is This Answer Correct ?    3 Yes 1 No

Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print (..

Answer / 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

More C Interview Questions

What are the benefits of organizational structure?

0 Answers  


How pointer is different from array?

0 Answers  


What is the purpose of ftell?

0 Answers  


What do mean by network ?

0 Answers  


Explain indirection?

0 Answers  






program for comparing 2 strings without strcmp()

4 Answers  


i want to job in your company, so how it will be possible.

3 Answers   TCS,


What are enumerated types?

0 Answers  


I need a sort of an approximate strcmp routine?

0 Answers  


Explain function?

0 Answers  


Explain the use of keyword 'register' with respect to variables.

0 Answers  


Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   Wipro,


Categories