Difference between a string copy (strcpy) and a memory copy (memcpy)? What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used? Answers: The strcpy() function ... Read More
Will it work? #include<string.h> int main() { printf(strcat("www.newtech4u.co.cc","!"); return 0; } Yes ,it will definitely work... Read More
Predict The Output: int main() { char a[]="shark"; (*a)++; printf("%s\n",a); printf("%s",a+1); return 0; } Output: thark hark Read More
63 write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean... Read More
59 Predict the output: int main () { printf (5+ "sharksrini" ) ; return 0; } Output: srini Logic: consider a string operation. ch... Read More
Frequency of characters Finding frequency characters in a string. Eg: "shark srini" in this string s:2 h:1 a:1 r:2 k:1 i:2 n:1 #include #include int main(... Read More
28 #include #include int main( ) { char a[ ]="shark srini"; char *b; int i; b=&a[0]; for(i=0;i { printf("%c",*a); b++;... Read More
27 #include int main() { int a=2; printf(&a["shark srini"]); return 0; } Output: ark srini Logic: To understand the logic of t... Read More
26 #include int main() { char a[]="shark selva"; printf("%c",a[0]); printf("%d",&a[1]); printf("%s"... Read More