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 c program to find the sum of five entered numbers using an array named number
How can you check to see whether a symbol is defined?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is the size of array float a(10)?
What is the stack in c?
What is the purpose of void in c?
Explain what is the benefit of using enum to declare a constant?
What is getch?
What are the types of i/o functions?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is variable initialization and why is it important?
Explain the difference between malloc() and calloc() in c?
Write a code on reverse string and its complexity.
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above