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



What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”..

Answer / kalyan chukka

None

Is This Answer Correct ?    2 Yes 3 No

What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”..

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

Post New Answer

More C Interview Questions

SIR PLS TELL ME THE CODE IN C LANGUAGE TO PRINT THE FOLLOWING SERIES 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1

4 Answers  


Is null valid for pointers to functions?

0 Answers  


Write a program to find the given number is odd or even without using any loops(if,for,do,while)

4 Answers   CNC, Gokul,


what is calloc and malloc?

2 Answers  


Is double link list a linear data structure? If Yes, Why?If No, Why?

4 Answers  






a c code by using memory allocation for add ,multiply of sprase matrixes

0 Answers  


code for replace tabs with equivalent number of blanks

0 Answers   Bosch,


Can two or more operators such as and be combined in a single line of program code?

0 Answers  


What is function prototype in c with example?

0 Answers  


What is the difference between strcpy() and memcpy() function in c programming?

0 Answers  


what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year

7 Answers   TCS,


WHAT IS FLOAT?

3 Answers  


Categories