char p="data";
printf(p);
Answers were Sorted based on User's Feedback
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 |
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 |
write a program in c to print **** * * * * ****
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
How to write c functions that modify head pointer of a linked list?
What's the difference between a linked list and an array?
Explain about the functions strcat() and strcmp()?
Write a program that receives as input a number omaadel-n-print, four digits.
what is const volatile?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,
a C prog to swap 2 no.s without using variables just an array?
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a
how to find anagram without using string functions using only loops in c programming