Is it possible to run a c program without using main?If yes
HOW??
Answer Posted / swetha
void add(int a,int b)
{
int c;
c=a+b;
printf("%d",c);
}
| Is This Answer Correct ? | 2 Yes | 14 No |
Post New Answer View All Answers
What do you mean by dynamic memory allocation in c? What functions are used?
What is dynamic variable in c?
Stimulate calculator using Switch-case-default statement for two numbers
What is action and transformation in spark?
What is a constant?
Lists the benefits of c programming language?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
How can you determine the maximum value that a numeric variable can hold?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Does sprintf put null character?
How do you determine the length of a string value that was stored in a variable?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
How do we declare variables in c?
What is a double c?