Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are global variables and explain how do you declare them?

1096


How do I get an accurate error status return from system on ms-dos?

1116


What is extern variable in c with example?

988


What is the difference between single charater constant and string constant?

1083


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1247


Why C language is a procedural language?

1021


Explain the difference between exit() and _exit() function?

1167


Explain what is a program flowchart and explain how does it help in writing a program?

1095


Explain argument and its types.

1058


What is your stream meaning?

1228


Explain what is the general form of a c program?

1089


What are dangling pointers in c?

1221


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1119


What is extern c used for?

1056


what will be the output for the following main() { printf("hi" "hello"); }

10988