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

What 'lex' does?

1154


What is default value of global variable in c?

969


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1373


What does typedef struct mean?

1093


How many levels of indirection in pointers can you have in a single declaration?

1072


what is the role you expect in software industry?

2134


How to Throw some light on the splay trees?

1048


What are the parts of c program?

1088


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1513


Why is c faster?

1080


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1581


What is string function c?

1003


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1181


What is this pointer in c plus plus?

1066


How will you divide two numbers in a MACRO?

1116