what is the difference between malloc() and calloc() function?
Answer / amritha rose
malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0
| Is This Answer Correct ? | 9 Yes | 1 No |
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is the exact difference between '\0' and ""
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Do pointers need to be initialized?
What is alloca() and why is its use discouraged?
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
What is the difference between struct and union in C?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Explain what a Binary Search Tree is.
how to count no of words,characters,lines in a paragraph.
What are the types of unary operators?