how to return 1000 variables from functio9n in c?plz give me
code also
Answer Posted / ramachandran
#include<stdio.h>
int fun(int *a)
{
return ++(*a);
}
int main()
{
int a=0,i,d;
for(i=0;i<100;i++)
{
d=fun(&a);
printf("\n%d",d);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How many types of arrays are there in c?
What is a macro, and explain how do you use it?
What is the difference between memcpy and memmove?
What is scanf_s in c?
What is the significance of scope resolution operator?
What is meant by initialization and how we initialize a variable?
Do you know what are the properties of union in c?
What Is The Difference Between Null And Void Pointer?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is the symbol indicated the c-preprocessor?
What are the preprocessor categories?
How can you tell whether a program was compiled using c versus c++?
Explain how can I open a file so that other programs can update it at the same time?
What is #line used for?
What is LINKED LIST? How can you access the last element in a linked list?