#include<stdio.h>
void main()
{
char *str;
long unsigned int add;
str="Hello C";
add=&str[0];
printf("%c",add);
}
What is the output?
Answer Posted / praveen
Error.Non-Portable pointer assignment in function main
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate between ordinary variable and pointer in c.
What are the types of functions in c?
Is it possible to initialize a variable at the time it was declared?
Explain goto?
What are qualifiers and modifiers c?
How do I swap bytes?
What is storage class?
What are the benefits of c language?
What is pass by value in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What are different types of variables in c?
What are static variables in c?
What are reserved words?
What is pass by reference in c?
How can I split up a string into whitespace-separated fields?