f(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
what is the output?
Answer Posted / prasad
it prints BYE on screen!!!
Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
Explain bitwise shift operators?
Explain what is the difference between far and near ?
Write a program to reverse a given number in c language?
Explain how do you list files in a directory?
What is dangling pointer in c?
What is volatile c?
What does 4d mean in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What is meant by type specifiers?
what is bit rate & baud rate? plz give wave forms
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Describe the steps to insert data into a singly linked list.
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?