String concatenation
Answers were Sorted based on User's Feedback
Answer / shrikantauti
it appends two strings. for this strcat() is used.
| Is This Answer Correct ? | 3 Yes | 0 No |
ABCDCBA ABC CBA AB BA A A
what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
Why cant I open a file by its explicit path?
find largest element in array w/o using sorting techniques.
if p is a string contained in a string?
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.
in which language c language is written?
What is the c language function prototype?
How can I convert integers to binary or hexadecimal?
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail