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
What are global variables and explain how do you declare them?
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.
What library is sizeof in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is a macro, and explain how do you use it?
all c language question
What is the difference between if else and switchstatement
What is the use of static variable in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is output redirection?
What is selection sort in c?
What is a memory leak? How to avoid it?
What is meant by preprocessor in c?
How to define structures? ·
Explain what is a const pointer?