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 the difference between scanf and fscanf?
What is #line?
What is new line escape sequence?
What is conio h in c?
Write a program to generate random numbers in c?
using only #include
How is a pointer variable declared?
What is floating point constants?
Differentiate between functions getch() and getche().
What is break statement?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What is string constants?
What is the difference between the local variable and global variable in c?
What is use of pointer?
What are the types of variables in c?