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
What are the different categories of functions in c?
Explain what is a 'locale'?
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
What is the difference between %d and %i?
what are bit fields? What is the use of bit fields in a structure declaration?
Can you tell me how to check whether a linked list is circular?
Explain the term printf() and scanf() used in c language?
What is structure data type in c?
What is a method in c?
When should I declare a function?
Is struct oop?
What is the difference between union and anonymous union?
Explain how does free() know explain how much memory to release?
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.
What are the advantages of using Unions?