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 extern variable in c with example?
What is static memory allocation? Explain
How will you divide two numbers in a MACRO?
How can I do peek and poke in c?
Explain what is the general form of a c program?
When should the volatile modifier be used?
How to write a code for reverse of string without using string functions?
What is a program?
What is a pointer in c plus plus?
Why can't I perform arithmetic on a void* pointer?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is d scanf?
What is console in c language?
What does s c mean in text?
explain what is an endless loop?