can we print any string in c language without using
semicolon(;)(terminator) in whole program.
Answer Posted / praveen vinny
/*
What if I want to print the sum of two numbers inside a
string without using a semicolon
*/
#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 ? | 4 Yes | 5 No |
Post New Answer View All Answers
Can a variable be both constant and volatile?
What is integer constants?
Why we use void main in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is const and volatile in c?
What is structure pointer in c?
difference between object file and executable file
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Why main is used in c?
What is maximum size of array in c?
What are the similarities between c and c++?
What is the c language function prototype?
Explain a file operation in C with an example.
What is main () in c?