#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
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is the difference between declaring a variable and defining a variable?
What is the use of putchar function?
What is malloc calloc and realloc in c?
What is n in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Can we change the value of #define in c?
what is the different bitween abap and abap-hr?
Explain how do you determine a file’s attributes?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is a constant?
Do variables need to be initialized?
When would you use a pointer to a function?
What is the correct code to have following output in c using nested for loop?
What is strcmp in c?