4,010 views
1 votes
1 votes
consider the two declarations

void *voidPtr;

char *charPtr;

which of the following assignments are syntactically correct?

(a)charPtr= voidPtr

(b)*charPtr=voidPtr

(c)*voidPtr=*charPtr

(d)voidPtr=charPtr

 

please explain!

1 Answer

Related questions

3 votes
3 votes
3 answers
1
Arjun asked Feb 16
3,154 views
​​​​​What is the output of the following $\text{C}$ program?#include <stdio.h int main() { double a =20.0,25.0,* p,* q; p=a ; q=p+1 ; printf("%d,%d", (int) (q-...
1 votes
1 votes
1 answer
4