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

Write a program to use switch statement.

649


Describe the steps to insert data into a singly linked list.

612


What is pragma c?

601


What is bin sh c?

571


What is structure in c language?

608






How can you call a function, given its name as a string?

704


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1452


What are run-time errors?

590


How can I recover the file name given an open stream or file descriptor?

584


What is openmp in c?

602


Where register variables are stored in c?

534


What is difference between static and global variable in c?

527


write a program in c language to print your bio-data on the screen by using functions.

6237


Where static variables are stored in c?

575


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1725