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! Programming in C pointers + – balaganesh asked Aug 31, 2018 balaganesh 4.0k views answer comment Share Follow See all 25 Comments See all 25 25 Comments reply Show 22 previous comments srestha commented Aug 31, 2018 reply Follow Share @Shaik I mean one memory adress is copying in another pointer variable where practically we need to do this? 0 votes 0 votes MiNiPanda commented Aug 31, 2018 reply Follow Share is it like call by reference? Yes kind of.. but like in call by ref, the pointer can manipulate the value by de-referencing but in this case we cannot change value of c by *voidPtr. 1 votes 1 votes Shaik Masthan commented Aug 31, 2018 reply Follow Share where practically we need to do this? we can use, void pointer for implementing function overloading in C 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes voidptr = charptr Pankaj_Saini answered Aug 14, 2019 Pankaj_Saini comment Share Follow See all 0 reply Please log in or register to add a comment.