#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 / manish122

Error:- Non Portable Pointer Conversion.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the best way to comment out a section of code that contains comments?

935


What are the 32 keywords in c?

860


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

838


How do we make a global variable accessible across files? Explain the extern keyword?

1649


What is the right type to use for boolean values in c? Is there a standard type?

802


How can I do graphics in c?

785


What is header file in c?

844


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1037


Explain the difference between structs and unions in c?

779


What is nested structure in c?

816


How can my program discover the complete pathname to the executable from which it was invoked?

864


what are bit fields in c?

1210


about c language

1805


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

895


what is the difference between class and unio?

2118