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

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1354


Why ca not I do something like this?

775


List the difference between a 'copy constructor' and a 'assignment operator' in C?

844


which is an algorithm for sorting in a growing Lexicographic order

1574


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1832


What is the right type to use for boolean values in c? Is there a standard type?

781


What are c identifiers?

838


What are global variables and how do you declare them?

784


What is the value of c?

770


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2012


What is a rvalue?

947


How will you find a duplicate number in a array without negating the nos ?

1827


what does static variable mean?

838


What is structure in c language?

822


What is selection sort in c?

800