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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Are the variables argc and argv are local to main?

780


How to delete a node from linked list w/o using collectons?

2082


What is build process in c?

637


What is the difference between fread buffer() and fwrite buffer()?

665


What is ctrl c called?

585






Write a program to check palindrome number in c programming?

594


What is c++ used for today?

655


What is time null in c?

577


Explain how can you check to see whether a symbol is defined?

655


Can we declare variables anywhere in c?

570


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1793


Does * p ++ increment p or what it points to?

603


Explain union.

630


What are the salient features of c languages?

616


What is scanf_s in c?

627