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 are global variables and explain how do you declare them?

693


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1386


What library is sizeof in c?

666


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

803


What is a macro, and explain how do you use it?

707






all c language question

1994


What is the difference between if else and switchstatement

1407


What is the use of static variable in c?

692


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1721


What is output redirection?

783


What is selection sort in c?

702


What is a memory leak? How to avoid it?

705


What is meant by preprocessor in c?

633


‎How to define structures? · ‎

733


Explain what is a const pointer?

735