write a program without using main function?
Answers were Sorted based on User's Feedback
Answer / raavi.swami
#include<stdio.h>
#define begin main
void begin()
{
printf("Hello");
}
| Is This Answer Correct ? | 27 Yes | 2 No |
Answer / siva koratani
#include<stdio.h>
#define begin m##a##i##n
void begin()
{
printf("Hello");
}
| Is This Answer Correct ? | 7 Yes | 2 No |
A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #define MACRO 10 printf("in test function %d", MACRO); } main() { printf("in main %d",MACRO); func(); testfunc(); getch(); }
How do you define a string?
Can a program have multiple main() functions?
What is substring in c?
What are linker error?
who will call your main function in c under linux?
. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none
What are 3 types of structures?
What is action and transformation in spark?
Is file a keyword in c?
What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?
Explain how do you determine the length of a string value that was stored in a variable?