Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to return 1000 variables from functio9n in c?plz give me
code also

Answer Posted / y hussain reddy

#include<stdio.h>
void main()
{
int *a;
a=(int*)malloc(200);
void f(int *);
f(a);

for(i=0;i<100;i++)
printf("%d ",a[i]);
}
void f(int *a)
{

int i;
for(i=0;i<100;i++)
a[i]=i;
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I direct output to the printer?

1324


What is %s and %d in c?

1047


What does %c mean in c?

1099


What is static function in c?

1121


What is the use of getch ()?

1077


What are the 4 types of functions?

1061


Are bit fields portable?

1162


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1701


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1071


How can I recover the file name given an open stream?

1027


What is difference between static and global variable in c?

1061


Do you know null pointer?

1033


i want to know the procedure of qualcomm for getting a job through offcampus

2472


Tell me what is null pointer in c?

1082


What is huge pointer in c?

1090