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 sorting are there in c?

808


What is the purpose of type declarations?

866


What is the difference between exit() and _exit() function in c?

812


What is the difference between a function and a method in c?

784


Is null always defined as 0(zero)?

805


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

809


What are the basic data types associated with c?

1021


Which is better malloc or calloc?

852


What are the advantages of using Unions?

831


State the difference between realloc and free.

824


Do you know null pointer?

771


What is p in text message?

724


What is this infamous null pointer, anyway?

782


Are global variables static in c?

863


What are the various types of control structures in programming?

800