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
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Are there any problems with performing mathematical operations on different variable types?
What is the difference between scanf and fscanf?
Which header file is used for clrscr?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Can a variable be both static and volatile in c?
What is the best way to store flag values in a program?
write a program to rearrange the array such way that all even elements should come first and next come odd
Who is the main contributor in designing the c language after dennis ritchie?
How can I write functions that take a variable number of arguments?
What is the translation phases used in c language?
What is volatile variable in c with example?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is pointer to pointer in c?
How can variables be characterized?