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
Write a program to print factorial of given number without using recursion?
Can we declare function inside main?
When is a null pointer used?
How does sizeof know array size?
What is 1d array in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is the difference between constant pointer and constant variable?
Explain what will the preprocessor do for a program?
How can you read a directory in a C program?
How is = symbol different from == symbol in c programming?
Is c++ based on c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is the use of header files?
If errno contains a nonzero number, is there an error?
In a switch statement, what will happen if a break statement is omitted?