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 the different categories of functions in c?

666


Explain what is a 'locale'?

596


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

700


What is the difference between %d and %i?

608


what are bit fields? What is the use of bit fields in a structure declaration?

1512






Can you tell me how to check whether a linked list is circular?

791


Explain the term printf() and scanf() used in c language?

610


What is structure data type in c?

579


What is a method in c?

633


When should I declare a function?

642


Is struct oop?

596


What is the difference between union and anonymous union?

845


Explain how does free() know explain how much memory to release?

581


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1995


What are the advantages of using Unions?

657