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
What is pass by value in c?
Tell me about low level programming languages.
Are pointers really faster than arrays?
What are the benefits of organizational structure?
What are the basic data types associated with c?
Are there namespaces in c?
Is c pass by value or reference?
What does == mean in texting?
What is meant by errors and debugging?
Write a program to print factorial of given number using recursion?
How can you tell whether two strings are the same?
Write a C program in Fibonacci series.
What is boolean in c?
What is anagram in c?
diff between exptected result and requirement?