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 are pointers really good for, anyway?
write a program to print largest number of each row of a 2D array
What is a pragma?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
which is an algorithm for sorting in a growing Lexicographic order
List the different types of c tokens?
How to define structures? ·
Explain the binary height balanced tree?
Write a program to use switch statement.
What is the difference between local variable and global variable in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Can i use “int” data type to store the value 32768? Why?
Explain how can you determine the size of an allocated portion of memory?
What is a example of a variable?
What is variable initialization and why is it important?