Which is better malloc or calloc?
No Answer is Posted For this Question
Be the First to Post Answer
Is it possible to run a c program without using main?If yes HOW??
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
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 ].
write a method for an array in which it can display the largest n next largest value.
how do you execute a c program in unix.
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,
What is meant by gets in c?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
What are called c variables?
Why is structure padding done in c?
why return type of main is not necessary in linux