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 |
write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
What is the difference between mpi and openmp?
is forign key will be unique key any table or not?
What are the Advantages of using macro
What is bss in c?
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these
write an algorithm and a program to count the number of elements in a circularly singly linked list
Explain the advantages of using macro in c language?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are the modifiers available in c programming language?
What is character set?
how to print a statement in c without use of console statement ,with the help of if statement it should print