what would be the output of the following program?
main()
{
int k = 123;
char *ptr;
ptr = &k;
printf("%d",*ptr);
}
Answer Posted / ankush
i also have a compilation error.....
""Cannot convert 'int_ss*' to 'char*' in function main()""
why its so....???
i want some answer.....
is my compiler wrong....
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of void in c?
What does it mean when the linker says that _end is undefined?
Differentiate between new and malloc(), delete and free() ?
Why void main is used in c?
Where are some collections of useful code fragments and examples?
What is function and its example?
What happens if header file is included twice?
What are the similarities between c and c++?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What are enums in c?
What is the purpose of & in scanf?
Is main is a keyword in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is #line in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.