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
In a header file whether functions are declared or defined?
Why do we use null pointer?
What is assert and when would I use it?
What are compound statements?
What does it mean when the linker says that _end is undefined?
What does 1f stand for?
What are enums in c?
How can I recover the file name given an open stream or file descriptor?
What is the difference between fread and fwrite function?
Explain the use of keyword 'register' with respect to variables.
What does void main () mean?
Explain what is operator promotion?
What oops means?
code for find determinent of amatrix
a value that does not change during program execution a) variabe b) argument c) parameter d) none