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
How can I insert or delete a line (or record) in the middle of a file?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
What is a static function in c?
What is difference between scanf and gets?
How do you use a pointer to a function?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is meant by initialization and how we initialize a variable?
How can a string be converted to a number?
Is null always defined as 0(zero)?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is the use of typedef in structure in c?
Why c is called a mid level programming language?
Is it possible to initialize a variable at the time it was declared?
What is "Duff's Device"?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures