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's the difference between constant char *p and char * constant p?

757


How to write a multi-statement macro?

711


How many levels of pointers have?

701


When should I declare a function?

725


What is the difference between exit() and _exit() function?

683






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

1215


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2967


Tell me when is a void pointer used?

753


What is property type c?

710


In a switch statement, what will happen if a break statement is omitted?

700


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

696


given post order,in order construct the corresponding binary tree

2413


Explain function?

740


What is anagram in c?

607


What is the purpose of clrscr () printf () and getch ()?

689