write a program without using main function?

Answers were Sorted based on User's Feedback



write a program without using main function?..

Answer / raavi.swami

#include<stdio.h>
#define begin main
void begin()
{
printf("Hello");
}

Is This Answer Correct ?    27 Yes 2 No

write a program without using main function?..

Answer / siva koratani

#include<stdio.h>
#define begin m##a##i##n
void begin()
{
printf("Hello");
}

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More C Interview Questions

An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

0 Answers   Aspire, Infogain,


What is the code for 3 questions and answer check in VisualBasic.Net?

0 Answers   Infosys,


What is linear search?

0 Answers  


Tell me what is the purpose of 'register' keyword in c language?

0 Answers  


dibakar & vekatesh..uttejana here..abt ur reply for in place reversal of linked list..wats p stands for there?

1 Answers  


i want to have a program to read a string and print the frequency of each character and it should work in turbo c

3 Answers   Persistent, Wipro,


What is a stream?

0 Answers  


what is a c-language.what is do.

4 Answers   HCL,


What is function pointer c?

0 Answers  


Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.

0 Answers  


Explain what does a function declared as pascal do differently?

0 Answers  


What is the difference between call by value and call by reference in c?

0 Answers  


Categories