This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char s1[] = {"The course of true love never did run smooth"}; | |
char s2[] = {'o', 'u', '\0'}; | |
squeeze(s1, s2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void squeeze(char s1[], char s2[]); | |
int main() | |
{ | |
char s1[] = {"The course of true love never did run smooth"}; | |
char s2[] = {'a', 'e', 'i', 'o', 'u'}; | |
squeeze(s1[], s2[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void squeeze(char s1[], char s2[]); | |
int main() | |
{ | |
char s1[] = {"The course of true love never did run smooth"}; | |
char s2[] = {'a', 'e', 'i', 'o', 'u'}; | |
squeeze(s1[], s2[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define YES 1 | |
#define NO 0 | |
#include <stdio.h> | |
int htoi(char s[]); | |
int main(){ | |
char s[] = {'3', '0xA', 'a'}; | |
htoi(s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define MAXLINE 1000 | |
#define TAB 8 | |
int getlines(char line[], int maxline); | |
void detab(char line[], int array_size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define MAXLINE 20 | |
int getlines(char line[], int maxline); | |
void print_array(char line[], int maxline, int array_size); | |
int main() | |
{ | |
int array_size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
write a program to count blanks, tabs and newlines | |
getline function | |
void count_type function | |
*/ | |
#define MAXLINE 1000 | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Write a function reverse(s) that reverses the characte string s. | |
Use it to write a program that reverses its input a line at a time. */ | |
#include <stdio.h> | |
#define MAXLINE 1000 | |
int getlines(char line[], int maxline); | |
void reverse(char s[]); | |
int main() |