Is it possible to run a c program without using main?If yes
HOW??
Answers were Sorted based on User's Feedback
Answer / valli
in linux while compilation we u mention -nostartfiles it
will work
#include<stdio.h>
abc()
{
printf("hello");
}
| Is This Answer Correct ? | 9 Yes | 13 No |
Answer / swetha
void add(int a,int b)
{
int c;
c=a+b;
printf("%d",c);
}
| Is This Answer Correct ? | 2 Yes | 14 No |
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
What is wrong with this initialization?
What is difference between %d and %i in c?
What is the benefit of using an enum rather than a #define constant?
write a c prog for removing duplicate character from an array and sorting remaining elements using a single array
Write a program for deleting duplicate elements in an array
Give a fast way to multiply a number by 7
15 Answers Accenture, Aricent, Microsoft,
What is pragma c?
State the difference between realloc and free.
write a program to insert an element at the specified position in the given array in c language
Describe how arrays can be passed to a user defined function
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }