Answer Posted / anandi
#include<stdio.h>
#include<conio.h>
void main()
{
int add(int,int);
int a,b;
clrscr();
printf("Enter two numbers: ");
scanf("%d %d",&a,&b);
printf("The Sum is: %d",add(a,b));
getch();
}
int add(int x,int y)
{
return(x+y);
}
Is This Answer Correct ? | 42 Yes | 14 No |
Post New Answer View All Answers
how do you execute a c program in unix.
List some of the dynamic data structures in C?
What is the purpose of sprintf() function?
Differentiate between a for loop and a while loop? What are it uses?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Do you have any idea how to compare array with pointer in c?
What are pointers?
How to declare a variable?
Are pointers really faster than arrays?
Hi can anyone tell what is a start up code?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Who is the main contributor in designing the c language after dennis ritchie?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
How do you determine whether to use a stream function or a low-level function?