#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

Determine if a number is a power of 2 at O(1).

2 Answers  


Are enumerations really portable?

0 Answers  


How the C program can be compiled?

11 Answers   HP,


How can I invoke another program or command and trap its output?

0 Answers  


no consistent academics. how to answer the question

0 Answers  






What is pointer to pointer in c?

0 Answers  


What is || operator and how does it function in a program?

0 Answers  


What is meant by operator precedence?

0 Answers  


what are the compilation steps? ( i want inside the compiler )

2 Answers  


What is volatile c?

0 Answers  


What are the three constants used in c?

0 Answers  


Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


Categories