how to write a program which adds two numbers without using
semicolon in c

Answer Posted / g.rajitha

void main()
{
int a,b;
if(printf("Enter two numbers"))
if(scanf("%d %d",&a,&b))
if(printf("%d",(a+b)))
}

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static memory allocation?

611


What is static identifier?

706


will u please send me the placement papers to my mail???????????????????

1367


what do you mean by inline function in C?

620


What is declaration and definition in c?

531






What are the advantages of c preprocessor?

715


Is it possible to initialize a variable at the time it was declared?

762


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

768


please give me some tips for the placement in the TCS.

1637


Are the variables argc and argv are always local to main?

576


Write a program to reverse a string.

644


What is the purpose of ftell?

601


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

617


What is hungarian notation? Is it worthwhile?

704


Do you know the purpose of 'register' keyword?

646