#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=0,b=0,c=0;
printf("enter value of a,b");
scanf("
%d %d",a,b);
c=a+b;
printf("sum is %d",c);
getch();
}
Answers were Sorted based on User's Feedback
What are the advantages of c language?
What is difference between array and pointer in c?
What are the back slash character constants or escape sequence charactersavailable in c?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Why is it that not all header files are declared in every C program?
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +
How do you define a function?
What is the difference between GETS();AND SCANF();
Explain following declaration int *P(void); and int (*p)(char *a);
what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }
simple c program for 12345 convert 54321 with out using string
Program to find the sum of digits of a given number until the sum becomes a single digit