Which is better pointer or array?
589
What do you mean by overloading?
574
How to create a responsive theme in drupal?
70
#include
#include
#include
#include
void select(char *items, int count);
int main(void)
{
char s[255];
printf("Enter a string:");
gets(s);
select(s, strlen(s));
printf("The sorted string is: %s.\n", s);
getch();
return 0;
}
void select(char *items, int count)
{
register int a, b, c;
int exchange;
char t;
for(a = 0; a < count-1; ++a)
{
exchange = 0;
c = a;
t = items[ a ];
for(b = a + 1; b < count; ++b)
{
if(items[ b ] < t)
{
c = b;
t = items[ b ];
exchange = 1;
}
}
if(exchange)
{
items[ c ] = items[ a ];
items[ a ] = t;
}
}
}
design an algorithm for Selection Sort
2056
What are membership?
522
What is entity in drupal ?
79
What is activex control in vc ++?
362
Python How to create a multidimensional list?
551
How do I delete all categories in wordpress?
96
What is difference between objective c and swift programming?
1
Are there constructors in c?
587
Tell me how do you do dependency injection in laravel?
376
What is the comment tag in Python ?
501
Is drupal in php?
90
What is unsigned int in c?
549