write a 'c' program to sum the number of integer values

Answer Posted / prince rafi

void main()
{
int sum,a=6,b=3;
clrscr();
sum=a+b;
printf("%d",sum);
}
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3380


How can I open files mentioned on the command line, and parse option flags?

800


What is strcmp in c?

747


How do I use void main?

832


Are there any problems with performing mathematical operations on different variable types?

784


What does volatile do?

742


Explain what is a pragma?

784


Define the scope of static variables.

813


Describe newline escape sequence with a sample program?

866


write a program to generate address labels using structures?

4270


Are local variables initialized to zero by default in c?

747


Write a program of prime number using recursion.

816


What are the two forms of #include directive?

849


Write a program to print "hello world" without using a semicolon?

821


What are the differences between Structures and Arrays?

838