#include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output?
Answer Posted / sumant
the output will be RamcoSystems
but we need 2 more libraries
#include<string.h> and
#include<alloc.h>
to run this program. in else case it will not work.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
can we have joblib in a proc ?
Why & is used in scanf in c?
What is the c value paradox and how is it explained?
Write a program to reverse a given number in c?
How can a program be made to print the name of a source file where an error occurs?
What is break in c?
Can a void pointer point to a function?
What is the difference between array and linked list in c?
What is sorting in c plus plus?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
In which language linux is written?
Is javascript based on c?
Write programs for String Reversal & Palindrome check
Explain continue keyword in c