String concatenation
Answers were Sorted based on User's Feedback
Answer / shrikantauti
it appends two strings. for this strcat() is used.
| Is This Answer Correct ? | 3 Yes | 0 No |
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?
write a program to swap two numbers without using temporary variable?
Can you please explain the scope of static variables?
What is the collection of communication lines and routers called?
How we can insert comments in a c program?
pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
how many errors in c explain deply
What is the purpose of main() function?
is assignment operator is arithmatic or not
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?