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 are the 4 data types?
How will you divide two numbers in a MACRO?
What are the primitive data types in c?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
how to make a scientific calculater ?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Write a code on reverse string and its complexity.
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
What is a macro, and explain how do you use it?
What is volatile variable how do you declare it?
Where are c variables stored in memory?
Are negative numbers true in c?
What math functions are available for integers? For floating point?
What is the purpose of void pointer?