#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 |
How. To pass the entrance test
What is a example of a variable?
How can I sort more data than will fit in memory?
we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Given an unsigned integer, find if the number is power of 2?
What is the acronym for ansi?
Can you think of a logic behind the game minesweeper.
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}
11 Answers IBM, TCS,
Are the expressions * ptr ++ and ++ * ptr same?
What are static variables in c?