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 using exit() the same as using return?
Why we use break in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
explain how do you use macro?
What is the difference between typedef and #define?
what will be the output for the following main() { printf("hi" "hello"); }
what is recursion in C
What is a stream?
What is array of pointers to string?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What does %c mean in c?
Why array is used in c?
What is %lu in c?
praagnovation