how to write a program which adds two numbers without using
semicolon in c
Answer Posted / g.rajitha
#include<iostream.h>
void main()
{
int a,b;
if(cout<<"Please enter two numbers : ")
if(cin>>a>>b)
if(cout<<"Sum = "<<(a+b))
}
| Is This Answer Correct ? | 5 Yes | 16 No |
Post New Answer View All Answers
What is an auto keyword in c?
What do the functions atoi(), itoa() and gcvt() do?
What is hungarian notation? Is it worthwhile?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Why void main is used in c?
Explain what header files do I need in order to define the standard library functions I use?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is uint8 in c?
Explain what are global variables and explain how do you declare them?
Why does this code crash?
Is it possible to execute code even after the program exits the main() function?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is structure packing in c?
What are header files and what are its uses in C programming?