[FUNCTION] takes nothing return something

---------------------

FUNCTION

---------------------

[Takes nothing return something ]

. When function don't takes any data and return something it called as Takes nothing return something  

###########

RUN SCREEN

###########

^^^^^^^^^^^^^^^^^^^

 $ source code $

#include<stdio.h>
#include<conio.h>
// takes nothing return something //
//code by UB //
int add(void);
void main()
{
int x;
clrscr();

x=add();
printf("sum is %d",x);
getch();
}

int add()
{
int c,a,b;
printf("enter two number= ");
scanf("%d %d",&a,&b);
c=a+b;
return(c);
}

###########################

&ALL RIGHTS GOES TO [UB CODES]$

###########################

<--------------------------------------------------------->

Popular posts from this blog

[2D] ARRAY

Switch in C

2D [STRING] IN C