main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcat(a,b));
}
a. Hello
b. Hello World
c. HelloWorld
d. None of the above
Answers were Sorted based on User's Feedback
Its B...
because there is a Space after Hello and then concate second string i.e World
so OUTPUT Hello World
| Is This Answer Correct ? | 1 Yes | 0 No |
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); }
Sir... please give some important coding questions asked by product companies..
How can i find first 5 natural Numbers without using any loop in c language????????
How we print the table of 2 using for loop in c programing?
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
find A^B using Recursive function
program to find magic aquare using array
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,