wap to print "hello world" without using the main function.
Answer Posted / niranjan vg
This is the other way you can use it.....
#include<stdio.h>
int hello();
_start()
{
_exit(hello());
}
int hello()
{
printf("\n \t\t\t\t\tHello World\n");
printf("\n \t \t \t Welome to C in Linux\n");
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Explain void pointer?
What is a structural principle?
What are preprocessor directives in c?
What is a 'null pointer assignment' error?
What is calloc()?
What are different storage class specifiers in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
How can I read and write comma-delimited text?
Should I learn data structures in c or python?
What is the auto keyword good for?
what do the 'c' and 'v' in argc and argv stand for?
What is actual argument?
Which header file is essential for using strcmp function?
Which are low level languages?
what is the basis for selection of arrays or pointers as data structure in a program