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 / ramachandran

#include<stdio.h>
int fun(int *a)
{
return ++(*a);
}

int main()
{
int a=0,i,d;
for(i=0;i<100;i++)
{
d=fun(&a);
printf("\n%d",d);
}
getch();
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of arrays are there in c?

995


What is a macro, and explain how do you use it?

1015


What is the difference between memcpy and memmove?

968


What is scanf_s in c?

1066


What is the significance of scope resolution operator?

1346


What is meant by initialization and how we initialize a variable?

1003


Do you know what are the properties of union in c?

998


What Is The Difference Between Null And Void Pointer?

1155


What does the message "automatic aggregate intialization is an ansi feature" mean?

1142


What is the symbol indicated the c-preprocessor?

1165


What are the preprocessor categories?

1001


How can you tell whether a program was compiled using c versus c++?

1043


Explain how can I open a file so that other programs can update it at the same time?

1055


What is #line used for?

989


What is LINKED LIST? How can you access the last element in a linked list?

1018