what is void pointer?

Answer Posted / sanjay bhosale

Void pointer is the pointer which can point to any type of variable.
e.g
int a=10;
float b=20.00f;
void *ptr=null;
ptr = &a;
ptr = &b;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use int main and void main?

826


Is c pass by value or reference?

842


What is memcpy() function?

880


Explain how can I avoid the abort, retry, fail messages?

846


What is void main ()?

837


how to write a c program to print list of fruits in alpabetical order?

2091


Explain what does the function toupper() do?

851


What are the different types of data structures in c?

900


What is a char c?

823


What are comments and how do you insert it in a C program?

1017


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

859


if p is a string contained in a string?

1642


What is the role of this pointer?

792


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

2257


What are the advantages of using linked list for tree construction?

877