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 |
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
Is null valid for pointers to functions?
Write a program to find the given number is odd or even without using any loops(if,for,do,while)
what is calloc and malloc?
Is double link list a linear data structure? If Yes, Why?If No, Why?
a c code by using memory allocation for add ,multiply of sprase matrixes
code for replace tabs with equivalent number of blanks
Can two or more operators such as and be combined in a single line of program code?
What is function prototype in c with example?
What is the difference between strcpy() and memcpy() function in c programming?
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
WHAT IS FLOAT?