No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
This program displays decimal,hexadecimal & character equivalents int main(void) { int i = 0; for(i = 0; i < 255; i++) printf("Dec-%3d hex-%02x Char-%c\n", i, i, i); return 0; } | |
Re: Google for "algorithms in C", for starters, and check out Wikipedia's algorithm's, as well (they have LOTS). Flowcharts are harder to find, (just not that popular on the internet, I believe), but give all your search engines a shot with that subject matter, as well. "All", you will never get, … | |
#include<stdio.h> #include<conio.h> #include<stdlib.h> main() { char ch1[20],ch2[20],*temp[10]; int i,j,count,k,p,q,len1,len2; printf("Enter the string\n"); scanf("%s",ch1); printf("Enter the string to be found\n"); scanf("%s",ch2); for(i=0;ch1[i]!='\0';i++); len1=i; for(j=0;ch2[j]!='\0';j++); len2=j; k=0; count=0; for(i=0;i<len1;i++) { if(ch1[i]==ch2[0]) { temp = &ch1[i]; k++; } } for(i=0;i<k;i++) { for(p=0;p<len1;p++) { for(q=0;q<k;q++) { if(*ch1[p]==*temp[q]) { for(j=0;j<len2;j++) { if(ch2[j]==ch1[p]) p++; if(ch2[j+1]=='\0') { … | |
how to use file operations using C like fopen,fclose,fread,fwrite,fseek,delete,modifying. |
The End.