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
Answer Posted / 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 |
Post New Answer View All Answers
Do character constants represent numerical values?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is the purpose of clrscr () printf () and getch ()?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is a pointer variable in c language?
Is null always equal to 0(zero)?
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 difference between %d and %i in c?
How can I handle floating-point exceptions gracefully?
Explain the meaning of keyword 'extern' in a function declaration.
Why double pointer is used in c?
What is the right type to use for boolean values in c? Is there a standard type?
What is openmp in c?
How do you define a function?