How to add two numbers without using semicolon n c????

Answers were Sorted based on User's Feedback



How to add two numbers without using semicolon n c????..

Answer / sorab aggarwal

#include<conio.h>
#include<stdio.h>
void main()
{
if(printf("%d",5+6))
{}
getch();
}

Is This Answer Correct ?    27 Yes 8 No

How to add two numbers without using semicolon n c????..

Answer / ashish lamse

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
void main()
{
if(cout<<"add of two no="<<10+20)
{}
if(getch())
{}
}

Is This Answer Correct ?    4 Yes 1 No

How to add two numbers without using semicolon n c????..

Answer / guest

int main()
{

return(5+6);
}

Is This Answer Correct ?    7 Yes 11 No

Post New Answer

More C Interview Questions

WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"

3 Answers  


How can I get random integers in a certain range?

0 Answers  


WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


What are the advantages of using new operator as compared to the function malloc ()?

0 Answers   NIIT,


Why do we use return in c?

0 Answers  






main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?

2 Answers   ME, Synfusion, Wipro,


What does the c preprocessor do?

0 Answers  


What’s a signal? Explain what do I use signals for?

0 Answers  


Explain how can I write functions that take a variable number of arguments?

0 Answers  


What is the default value of local and global variables in c?

0 Answers  


Write a c program to demonstrate Type casting in c?

2 Answers  


Categories