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
Is there a built-in function in C that can be used for sorting data?
Define recursion in c.
What is the 'named constructor idiom'?
If you know then define #pragma?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
How can I do graphics in c?
how can use subset in c program and give more example
Why we use void main in c?
Can we assign string to char pointer?
How can type-insensitive macros be created?
Why c is called free form language?
why return type of main is not necessary in linux
Why do we use main function?
What is 02d in c?
What is a const pointer?