What is the difference between null pointer and void pointer

Answer Posted / govind

a void pointer is a special type of pointer of void and
denotes that it can point to any type of data type .NULL
pointer can take any pointer type , but do not point to any
valid reference or memory adderss.it is important to note
that a NULL pointer is different from a pointer that is
initialized.

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formal argument?

652


What does sizeof int return?

594


How can I open files mentioned on the command line, and parse option flags?

594


What is the purpose of void in c?

619


What are terms in math?

594






What is the use of a semicolon (;) at the end of every program statement?

774


What is the benefit of using const for declaring constants?

588


What is a nested formula?

606


what are bit fields? What is the use of bit fields in a structure declaration?

1499


List the variables are used for writing doubly linked list program.

1623


program for reversing a selected line word by word when multiple lines are given without using strrev

1947


What is meant by gets in c?

609


Is c is a middle level language?

597


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

2556


What is cohesion in c?

542