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
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is C language ?
Can we compile a program without main() function?
How are variables declared in c?
How do you define structure?
Explain how do you print only part of a string?
Lists the benefits of c programming language?
Which type of language is c?
Is there any demerits of using pointer?
What is static and auto variables in c?
Explain the difference between null pointer and void pointer.
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is size of union in c?
What is the meaning of 2d in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?