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
How many types of sorting are there in c?
What is the purpose of type declarations?
What is the difference between exit() and _exit() function in c?
What is the difference between a function and a method in c?
Is null always defined as 0(zero)?
What is a macro, and explain how do you use it?
What are the basic data types associated with c?
Which is better malloc or calloc?
What are the advantages of using Unions?
State the difference between realloc and free.
Do you know null pointer?
What is p in text message?
What is this infamous null pointer, anyway?
Are global variables static in c?
What are the various types of control structures in programming?