Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
Answers were Sorted based on User's Feedback
Answer / iftekhar qurashi
last function in the program to avoid prototyping.
if we write it as a first function and other functions is declared after main(), then main function can't find it.
but it can be declared anywhere in the program when we declared every function except main() in the beginning of program
for other consultancy you can mail me
regards
iftekhar qurashi
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vishwanath g. desai
d. Any where in the program, because it is a top down
program ok I agree with that, actually the feature wise we
have to write the first but now the compiler agree with the
answer d. While the program execute means it execute the
first main().
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / katrina
main shouldnt be written in c programming but infact it is
main()
| Is This Answer Correct ? | 0 Yes | 3 No |
How do you define structure?
Are comments included during the compilation stage and placed in the EXE file as well?
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
Why isn't it being handled properly?
What is #line?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How do you determine if a string is a palindrome?
Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is sorted and A[n+1] ... A[n+m] is sorted. Design a linear time algorithm to obtain A[1...n+m] sorted using only O(1) extra space. Time Complexity of your algorithm should be O(n) and Space Complexity O(1).
char p="data"; printf(p);
any string of bits of length 'n' represents a unique non- negative integer between.............?
Is it cc or c in a letter?