#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 your stream meaning?

0 Answers  


What is information technology.

1 Answers  


what are the stoge class in C and tel the scope and life time of it?

2 Answers   Tech Mahindra,


What is scanf () in c?

0 Answers  


write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word

1 Answers   Sienna Ecad, Wipro,






wat is the difference between array and pointer?

4 Answers   Wipro,


Why do u use # before include in a C Progam?

9 Answers   IBM,


what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 Answers  


what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā€œ %d\nā€,sum); } what is the difference between a=10 and a=010??

3 Answers   Oracle,


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


What are the different types of objects used in c?

0 Answers  


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


Categories