char p="data";
printf(p);

Answers were Sorted based on User's Feedback



char p="data"; printf(p);..

Answer / veluri.haritha

It gives an error message as "NON PORTABLE POINTER CONVERSION"
because character data type accepts single character which
is enclosed in the single quotes.

Is This Answer Correct ?    2 Yes 0 No

char p="data"; printf(p);..

Answer / v.haritha

It gives an error message as "NON PORTABLE POINTER CONVERSION"
because a variable of character data type can store only a
single character where as in this case the variable is
initialized with a string.




answered by V.HARITHA undergoing c training yet
to join b.tech.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

What is a pointer variable in c language?

0 Answers  


What is the use of a conditional inclusion statement in C?

0 Answers   Global Logic,


Is c language still used?

0 Answers  


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

0 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,






what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }

14 Answers  


Why is structure important for a child?

0 Answers  


How to print India by nested loop? I IN IND INDI INDIA

4 Answers   NIIT, Wipro,


What are the difference between a free-standing and a hosted environment?

0 Answers   Infogain,


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


how to display 2-D array elements in spiral

2 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


Categories