{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

points to remember - (D Depends on the Compiler What is the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 What is the correct way to define a constant pointer? (A) const char *name_ptr = "TEST" (B) char *const name_ptr = "TEST" (C) Both (D) None of Above. What fucntion will read a specified number of elements from a file? (A) readfile() (B) fread() (C) fileread() (D) getline() 6. x% of y is y% of ? (A) x/y (B) 2y (C) x (D) can't be determined What is the difference between the two declaration ? #include <stdio.h> & #include ° stdio.h° (A) No Difference (B) The 2nd declaration will not compile (C) First case Compiler looks in all default location and in 2nd case only in the working directory
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (D) Depends on the Compiler What is the difference between calloc and malloc (A) calloc allocates memory in contiguous bytes, malloc does not ensure contiguous memory allocation (B) Memory allocated through calloc need not be freed explicitly, While memory allocated through malloc needs to be freed e x (C) calloc initialises the memory by setting all-bits-zero, malloc does not does any zero fill. (D) all of the above...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online