What is a void pointer in c?



What is a void pointer in c?..

Answer / Animesh Khare

A void pointer in C is a generic pointer type that can point to any memory location. It must be explicitly casted when used with other data types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 Answers  


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1 Answers  


What is the function of multilevel pointer in c?

1 Answers  


How can I find out if there are characters available for reading?

1 Answers  


Why c language is called c?

1 Answers  


what is the difference between postfix and prefix unary increment operators?

3 Answers  


Differentiate between null and void pointers.

0 Answers   TCS,


Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

1 Answers   Subex,


What is the use of in c?

1 Answers  


How can I get the current date or time of day in a c program?

1 Answers  


Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)

1 Answers   HTC,


Categories