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

Can a variable be both constant and volatile?

1127


What is integer constants?

1085


Why we use void main in c?

1175


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1074


What is const and volatile in c?

1050


What is structure pointer in c?

1061


difference between object file and executable file

6733


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

1157


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2135


Why main is used in c?

1078


What is maximum size of array in c?

1047


What are the similarities between c and c++?

1079


What is the c language function prototype?

1088


Explain a file operation in C with an example.

1121


What is main () in c?

1078