how to return 1000 variables from functio9n in c?plz give me
code also
Answer Posted / y hussain reddy
#include<stdio.h>
void main()
{
int *a;
a=(int*)malloc(200);
void f(int *);
f(a);
for(i=0;i<100;i++)
printf("%d ",a[i]);
}
void f(int *a)
{
int i;
for(i=0;i<100;i++)
a[i]=i;
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How can I direct output to the printer?
What is %s and %d in c?
What does %c mean in c?
What is static function in c?
What is the use of getch ()?
What are the 4 types of functions?
Are bit fields portable?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How can I recover the file name given an open stream?
What is difference between static and global variable in c?
Do you know null pointer?
i want to know the procedure of qualcomm for getting a job through offcampus
Tell me what is null pointer in c?
What is huge pointer in c?