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
How can I pad a string to a known length?
How many main () function we can have in a project?
What is nested structure with example?
which type of aspect you want from the student.
what is a constant pointer in C
Array is an lvalue or not?
Describe static function with its usage?
What is this infamous null pointer, anyway?
Describe the order of precedence with regards to operators in C.
How can I do peek and poke in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Write a program to print “hello world” without using semicolon?
What is c definition?
What is class and object in c?
What was noalias and what ever happened to it?