#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
Answer / vinod kumar
warning: assignment makes integer from pointer without a cast
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / balakrishna
Non-Portable pointer assignment in function main
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / praveen
Error.Non-Portable pointer assignment in function main
| Is This Answer Correct ? | 0 Yes | 0 No |
Here is a good puzzle: how do you write a program which produces its own source code as output?
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
print out of string in this format; 1. "rajesh" 2. \n 3. %d
What is the scope of an external variable in c?
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
Explain 'bit masking'?
what is the coding of display the factorial of a number using array and function?
Do pointers take up memory?
How do you determine if a string is a palindrome?
What are preprocessor directives?
what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }