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 ios diff. Between %e & %f?

3 Answers   Honeywell,


`write a program to display the recomended action depends on a color of trafic light using nested if statments

0 Answers  


What is the purpose of scanf() and printf() functions?

0 Answers  


What is the use of gets and puts?

0 Answers  


Why do we use c for the speed of light?

0 Answers  






An entire structure variable can be assigned to another structure variable if __________

3 Answers   Sasken, TCS, Tech Mahindra, Wipro,


Describe wild pointers in c?

0 Answers  


Write a program to generate the Fibinocci Series

0 Answers   TISL,


an algorithem for the implementation of circular doubly linked list

1 Answers  


writw a program to insert an element in the begning of a doubly linked list

1 Answers  


Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)

2 Answers  


What is sizeof return in c?

0 Answers  


Categories