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

Write a C program in Fibonacci series.

1137


Are comments included during the compilation stage and placed in the EXE file as well?

1127


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1309


Explain what is the benefit of using const for declaring constants?

1088


What are the types of pointers?

1189


What is meant by high-order and low-order bytes?

1102


Is Exception handling possible in c language?

2100


What is an lvalue?

1107


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3148


Define recursion in c.

1350


Is return a keyword in c?

1147


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

1190


What is dynamic dispatch in c++?

1108


What is scanf_s in c?

1170


What is the difference between text and binary modes?

1241