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 / 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 |
Post New Answer View All Answers
what is the difference between class and unio?
Explain logical errors? Compare with syntax errors.
How can I recover the file name given an open stream or file descriptor?
Is exit(status) truly equivalent to returning the same status from main?
What is the scope of an external variable in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What are the advantages of using linked list for tree construction?
Is c easy to learn?
What is null character in c?
Why void is used in c?
What are local variables c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What are the difference between a free-standing and a hosted environment?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What does the error message "DGROUP exceeds 64K" mean?