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 |
which of the function operator cannot be over loaded a) <= b)?: c)== d)*
10 Answers Cisco, CTS, Google, HCL, HP,
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }
What is meant by gets in c?
Convert the following expression to postfix and prefix (A+B) * (D-C)
Is c is a low level language?
What is size of union in c?
Tell me with an example the self-referential structure?
What is difference between && and & in c?
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
#include<stdio.h> void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?