Answer Posted / kartik
The main() function represenrs starting of the program.When
ever we write main in program the system analyse starts from
tthere
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why we write conio h in c?
What is the difference between text and binary modes?
When we use void main and int main?
How do you declare a variable that will hold string values?
Explain is it better to bitshift a value than to multiply by 2?
What is the use of #include in c?
What is the difference between struct and typedef struct in c?
Explain how do you list a file’s date and time?
Explain heap and queue.
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Why is c platform dependent?
Why is %d used in c?
What is the function of volatile in c language?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Can we declare function inside main?