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 pre-emptive data structure and explain it with example?
What is line in c preprocessor?
What is c variable?
Why doesnt long int work?
How do you override a defined macro?
What are valid operations on pointers?
Are c and c++ the same?
How do you convert strings to numbers in C?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
All technical questions
What happens if you free a pointer twice?
Explain what are global variables and explain how do you declare them?
Explain how do you override a defined macro?
I have a varargs function which accepts a float parameter?
What is a structure in c language. how to initialise a structure in c?