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 'lex' does?
What is default value of global variable in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What does typedef struct mean?
How many levels of indirection in pointers can you have in a single declaration?
what is the role you expect in software industry?
How to Throw some light on the splay trees?
What are the parts of c program?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Why is c faster?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is string function c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is this pointer in c plus plus?
How will you divide two numbers in a MACRO?