adding two integer number in c (using function)

preview_player
Показать описание
showing how to add two integer in c programming using the function.
Рекомендации по теме
Комментарии
Автор

Next time you make a video on a coding problem, please explain the steps. Just writing the program will not help many.

apoorva
Автор

thanks a lot it helped me
but please clear this doubt.
if we define the caladd function below the main function then the compiler shows error in the line
c=caladd(a, b);
the error is
the function should have prototype

please clear the fault.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a, b, c;
printf("enter the three numbers:\n");
scanf("%d%d", &a, &b);
c = caladd(a, b);
printf("sum of numbers is%d", c);
getch();
}
int caladd(int x, int y)
{
int sum;
sum=x+y;
return(sum);
}

abutalha
Автор

Per bhai apka ye same program mere me run nhi ho raha h bolta h declaration terminated incorrectly. Please solve my query

lingam
Автор

Bhai explain kon karega ..
Eise to koi bhi dekh ke run karega..
But we need explanation...

alpesh_tandel
Автор

Bro I am going to complaint next time 🤯😤

pradeepsingh
Автор

saala ye c programming hai to ".c" extension kya java me use hota.copycat.

HallOfMemeYT