#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 / khaja
ramco system
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is linear search?
What is the main difference between calloc () and malloc ()?
What is the difference between fread buffer() and fwrite buffer()?
Explain how do you sort filenames in a directory?
How can I prevent another program from modifying part of a file that I am modifying?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Where are some collections of useful code fragments and examples?
Why & is used in c?
What is the difference between struct and typedef struct in c?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is an auto variable in c?
using only #include
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Is c programming hard?
What type of function is main ()?