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 do you define CONSTANT in C?
program to convert a integer to string in c language'
What does c mean in basketball?
Give basis knowledge of web designing ...
What does c value mean?
Is there a built-in function in C that can be used for sorting data?
Can a pointer point to null?
What is the use of sizeof?
Subtract Two Number Without Using Subtraction Operator
Why does the call char scanf work?
How many levels of indirection in pointers can you have in a single declaration?
What is ambagious result in C? explain with an example.
What are the types of c language?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Are there constructors in c?