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

Is using exit() the same as using return?

689


Why we use break in c?

560


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7423


explain how do you use macro?

676


What is the difference between typedef and #define?

552






what will be the output for the following main() { printf("hi" "hello"); }

9357


what is recursion in C

622


What is a stream?

659


What is array of pointers to string?

578


How would you use the functions fseek(), freed(), fwrite() and ftell()?

713


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)

695


What does %c mean in c?

662


Why array is used in c?

564


What is %lu in c?

693


praagnovation

1789