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
Explain what is the best way to comment out a section of code that contains comments?
What are identifiers and keywords in c?
Write a program in c to replace any vowel in a string with z?
What is || operator and how does it function in a program?
How can I call a function with an argument list built up at run time?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Should I learn data structures in c or python?
I need testPalindrome and removeSpace
#include
What are header files and explain what are its uses in c programming?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
How can I manipulate individual bits?
What is void pointers in c?
What do you know about the use of bit field?
Is c dynamically typed?