#include<stdio.h>
void main()
{
char *str;
long unsigned int add;
str="Hello C";
add=&str[0];
printf("%c",add);
}
What is the output?

Answers were Sorted based on User's Feedback



#include<stdio.h> void main() { char *str; long unsigned int add; str="H..

Answer / manish122

Error:- Non Portable Pointer Conversion.

Is This Answer Correct ?    5 Yes 0 No

#include<stdio.h> void main() { char *str; long unsigned int add; str="H..

Answer / vinod kumar

warning: assignment makes integer from pointer without a cast

Is This Answer Correct ?    4 Yes 3 No

#include<stdio.h> void main() { char *str; long unsigned int add; str="H..

Answer / balakrishna

Non-Portable pointer assignment in function main

Is This Answer Correct ?    0 Yes 0 No

#include<stdio.h> void main() { char *str; long unsigned int add; str="H..

Answer / praveen

Error.Non-Portable pointer assignment in function main

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is structure padding and packing in c?

0 Answers  


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


Differentiate between ordinary variable and pointer in c.

0 Answers  


What is far pointer in c?

0 Answers  


What is the difference between NULL and NUL?

0 Answers   Aspire, Infogain,


What is page thrashing?

0 Answers  


Explain setjmp()?

0 Answers  


Tell me with an example the self-referential structure?

0 Answers  


Do you know the use of fflush() function?

0 Answers  


no consistent academics. how to answer the question

0 Answers  


What is the purpose of the statement: strcat (S2, S1)?

0 Answers  


Explain the difference between structs and unions in c?

0 Answers  


Categories