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 |
about c language
What is the meaning of typedef struct in c?
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
what is the benefit of c30
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What are the general description for loop statement and available loop types in c?
Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
can we implement multi-threads in c.
What the advantages of using Unions?
write a program to arrange the contents of a 1D array in ascending order
What is binary tree in c?