What are the output(s) for the following ?
#include
char *f()
{char *s=malloc(8);
strcpy(s,"goodbye")}
main()
{
char *f();
printf("%c",*f()='A');
}
No Answer is Posted For this Question
Be the First to Post Answer
nic scientist exam
why we use pointer in c
2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.
Why main is used in c?
What is the difference between #include and #include 'file' ?
plz let me know how to become a telecom protocol tester. thank you.
what is a function pointer and how all to declare ,define and implement it ???
Is it acceptable to declare/define a variable in a c header?
how we can say java is platform independent, while we require JVM for that particular Operating System?
without a terminator how can we print a message in a printf () function.
What is dynamic variable in c?
int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?