Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void spacja(char string[])
- {
- char temp[100];
- int i;
- int j=0;
- for(i=0; string[i]!='\0'; i++)
- {
- if(string[i]!=' ')
- {
- temp[j]=string[i];
- j++;
- }
- }
- for(i=0; temp[i]!='\0';i++)
- {
- string[i]=temp[i];
- }
- string[i+1]='\0';
- }
- int main()
- {
- printf("Hello world!\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement