SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
C program to find acronym of a string
C program to find acronym of a string
Output:
Enter Your Name: Code Register
CR
Implementation:
#include
#include
#include
#define MAX 1000000 int main(void) { char *s; int i; s=(char*)malloc(sizeof(char)*MAX); printf("Enter Your Name:\n"); gets(s); i=0; printf("%c",toupper(*s)); while(*(s+i)) { if(*(s+i)==' ') { printf("%c",toupper(*(s+i+1))); } i++; } return 0; }
PREVIOUS
NEXT
HOME