What is the o/p of the follow pgm?
#include<stdio.h>
main()
{
char char_arr[5]=”ORACL”;
char c=’E’;
prinf(“%s\n”,strcat(char_arr,c));
}
a:oracle
b. oracl
c.e
d.none
Answers were Sorted based on User's Feedback
Answer / sadanand
error in program... strcat is used to concatinate 2 strings.
in above program c is char and not string so compilation error
| Is This Answer Correct ? | 0 Yes | 3 No |
#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?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is the maximum length of an identifier?
What are header files in c programming?
Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;
18 Answers Accenture, Cisco, Egentec, HCL, Ideaz, Infosys, M-Systems, MYR, TCS,
c programming of binary addition of two binary numbers
How can I manipulate individual bits?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
what is the main use of c where it can use the c
What are the rules for the identifier?
Prove or disprove P!=NP.