employer cover photo
employer logo
employer logo

Daffodil Software

Is this your company?

Daffodil Software Interview Question

Q. Sort string alphabetically without using sort function

Interview Answer

Anonymous

Aug 30, 2019

#include void main() { char arr[15]; char a[26]={0}; int i; gets(arr); for(i=0;arr[i]!='\0';i++) { a[arr[i]-'a']++; } for(i=0;i0) { printf("%c",i+'a'); } } }