What is the difference between malloc() and calloc()?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
Is This Answer Correct ? | 0 Yes | 0 No |
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
Is This Answer Correct ? | 0 Yes | 0 No |
9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.
void main() { int a[]={1,2,3,4,5},i; for(i=0;i<5;i++) printf("%d",a++); getch(); }
Can the curly brackets { } be used to enclose a single line of code?
write a program to fined second smallest and largest element in a given series of elements (without sorting)
i need all types of question paper releted to "c" and other language.
If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
what are the advantages & disadvantages of unions?
What are the rules for identifiers in c?
code for inverse a matrix
1 What is a Data Structure?
Which are low level languages?