how to concatenate the two strings
Answer / hasini
simple steps:
String s1 = "Hello, ";
String s2 = "world!";
String s3 = s1 + s2;
System.out.println(s3);
// prints out: Hello, world!
| Is This Answer Correct ? | 3 Yes | 2 No |
main() { 41printf("%p",main); }8
String reverse with time complexity of n/2 with out using temporary variable.
main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); }
plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
void ( * abc( int, void ( *def) () ) ) ();
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
main() { main(); }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
how to return a multiple value from a function?
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }