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
What are global variables and explain how do you declare them?
How do I get an accurate error status return from system on ms-dos?
What is extern variable in c with example?
What is the difference between single charater constant and string constant?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Why C language is a procedural language?
Explain the difference between exit() and _exit() function?
Explain what is a program flowchart and explain how does it help in writing a program?
Explain argument and its types.
What is your stream meaning?
Explain what is the general form of a c program?
What are dangling pointers in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is extern c used for?
what will be the output for the following main() { printf("hi" "hello"); }