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
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What are the 4 data types?
What are void pointers in c?
What is volatile variable how do you declare it?
what is uses of .net
Does c have class?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
what is the function of pragma directive in c?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
Write a C program in Fibonacci series.
Explain how can you be sure that a program follows the ansi c standard?
Tell me is null always defined as 0(zero)?
difference between native and cross compilers
What is || operator and how does it function in a program?