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
Write a C program in Fibonacci series.
Are comments included during the compilation stage and placed in the EXE file as well?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain what is the benefit of using const for declaring constants?
What are the types of pointers?
What is meant by high-order and low-order bytes?
Is Exception handling possible in c language?
What is an lvalue?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Define recursion in c.
Is return a keyword in c?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is dynamic dispatch in c++?
What is scanf_s in c?
What is the difference between text and binary modes?