Can we write a program without main() function?

Answer Posted / rajkumar

I think its possiblle through macros ....like this

#define main() start
start
{
printf("Hai");
}

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unsigned int in c?

551


Should a function contain a return statement if it does not return a value?

592


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1648


Can we add pointers together?

612


Explain is it better to bitshift a value than to multiply by 2?

708






1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3975


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

632


Explain how are 16- and 32-bit numbers stored?

779


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

701


Are the expressions * ptr ++ and ++ * ptr same?

663


What is a floating point in c?

597


What is difference between class and structure?

565


How do you write a program which produces its own source code as output?

602


What is memcpy() function?

617


What are actual arguments?

641