#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 / fazlur rahaman naik
The output will b : RamcoSystems
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Explain enumerated types.
What are the features of c languages?
Explain main function in c?
When can a far pointer be used?
What do you mean by dynamic memory allocation in c? What functions are used?
What is the size of structure pointer in c?
Why c is called free form language?
What is a built-in function in C?
How can I write a function analogous to scanf?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Explain the difference between getch() and getche() in c?
Tell me about low level programming languages.
What is meant by realloc()?
Explain the red-black trees?
What is an lvalue in c?