top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What type of conversion is not accepted in C & why? a)char to int b)float to char pointer c)int to char d)double to char

+1 vote
1,057 views

What type of conversion is not accepted in C and why?
a) char to int
b) float to char pointer
c) int to char
d) double to char

posted Aug 28, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Conversion of a float to pointer type is not allowed.

answer Aug 29, 2017 by Chirag Gangdev
Why its not allowed...
Similar Questions
+4 votes

What will be the output of this code?

 void main(){
       int i=320;
       char *ptr=(char *)&i;
       printf("%d",*ptr); 
    }
+3 votes

In Java
I am using statement a += b where a is int and b is double, when I use a += b, it won't give error but in case of a = a + b it gives error, why ?

...