Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

In a switch statement, what will happen if a break statement is omitted?

1067


Do you know the difference between malloc() and calloc() function?

1066


What is variable in c example?

1076


What is the difference between array and pointer?

1028


What does sizeof function do?

1199


Can we declare variables anywhere in c?

1002


What are all different types of pointers in c?

1012


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1098


What is array of structure in c?

1184


while initialization of array why we use a[][2] why not a[2][]...?

2365


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

2278


Explain what are run-time errors?

1095


Why header file is used in c?

1097


What is the purpose of & in scanf?

1078


Explain how can I make sure that my program is the only one accessing a file?

1225