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

Explain what are preprocessor directives?

0 Answers  


Difference between Class and Struct.

13 Answers   Ericsson, Motorola, Wipro,


to find the program of matrix multiplication using arrays

6 Answers   Bhel,


What is pointers in c with example?

0 Answers  


Which is the memory area not included in C program? give the reason

0 Answers   IBM, TCS,






What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 Answers  


what is bitwise operator?

1 Answers   IBM,


Describe the header file and its usage in c programming?

0 Answers  


What happens if a header file is included twice?

0 Answers  


difference between ordinary variable and pointer in C?

2 Answers  


What does. int *x[](); means ?

0 Answers   Wilco,


What are header files in c?

0 Answers  


Categories