#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 the use of call back function in c?tell me with example

2 Answers   Bosch,


What is c basic?

0 Answers  


Why functions are used in c?

0 Answers  


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

0 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  






Why c++ is called c++ and not c+?

9 Answers   EBS,


What does the c preprocessor do?

0 Answers  


1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

12 Answers   Eskom, TCS,


how to get the starting address of file stored in harddisk through 'C'program.

2 Answers   Siemens,


Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.

3 Answers   Google,


What does do in c?

0 Answers  


what is the difference between <stdio.h> and "stdio.h"

14 Answers   Invendis, Kanbay, Mastek, MathWorks,


Categories