Can a pointer to char data-type be type casted to pointer to integer type?

Answer

Yes it is possible in C language.

  1. include<stdio.h>

int main(void) { char *cptr; int *iptr; iptr=(int*)cptr; return 0; }

If you find the info useful Please Vote!!!

Improve Answer Discuss the question "Can a pointer to char data-type be type casted to pointer to integer type?" Watch Question

First answer by Logicwonder. Last edit by Logicwonder. Contributor trust: 368 [recommend contributor]. Question popularity: 38 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Can a pointer to char data-type be type casted to pointer to integer type?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
What is an array pointer?  Size of char data-type in c?  Difference Int pointer and char pointer?  Declare a pointer to a function that takes a char pointer as argument and returns a void pointer?