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 g value paradox?
What is union and structure?
Can main () be called recursively?
What is typedf?
main() { printf("hello"); fork(); }
How do you write a program which produces its own source code as output?
How can a number be converted to a string?
What is the difference between char array and char pointer?
What do you mean by a sequential access file?
What is function in c with example?
Explain how can I right-justify a string?
Explain is it valid to address one element beyond the end of an array?
What will the preprocessor do for a program?
write a program to find out prime number using sieve case?
What are the various types of control structures in programming?