functıons
64x64

mustafa

17.9.2020 00:00:00

Merhaba arkadaşlar,abiler,hanımefendiler;

 

Bu 2 soru ile sonuca gidemiyorum;

Konu ile ilgili olarak çözümü bana ulaştırabilirseniz memnun olurum.

 

1.

Write a C program that gets a string from the user and counts the number of a‟s in that

string. Assume that the size of your string is 10.

Sample Run:

Enter your string: deaasfg

Your string has 2 a‟s.

 

 

2.

Using strcat and strcmp functions, write a C program that asks the user to enter 2 strings

(string1 and string2), then compares string1 and string2. After comparison, your program will

concatenate first 3 characters of string2 to string 1.

 

Yorum yaz