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 general form of a C program?
What is getch() function?
What is double pointer in c?
What is the advantage of an array over individual variables?
simple program of graphics and their output display
What do you mean by dynamic memory allocation in c?
Write a code on reverse string and its complexity.
Explain the red-black trees?
What are compound statements?
Is void a keyword in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What tq means in chat?
Why do we need volatile in c?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
number of times a digit is present in a number