reverse a string
s in place.
Invoke this function from main for different strings and print the original and reversed strings.
14. Write a C program to find out whether the given
string is a palindrome.
15. Write a C function
match-any (s1, s2)
that returns the first location in the string s1 where any
character from the string s2 occurs or -1 if s1 contains no character from s2. Do not use any
inbuilt standard library function. Invoke the function match-any (s1, s2) from the main for
different strings and print both strings and return value from the function match-any (s1, s2).
A
PPENDIX
B: K
EYWORDS IN
C
There are 32 keywords in C as follows:
auto
double
if
static
break
else
int
struct
case
enum
long
switch
char
extern
near
typedef
const
far
register
union
continue
float
return
unsigned
default
for
short
void
do
goto
signed
while
A
PPENDIX
C: E
SCAPE
S
EQUENCES IN
C
Do'stlaringiz bilan baham: |