Computer Science, asked by rrraviraj338, 5 months ago

WAP to find vowels in a string(s1) and concatenate those vowels with string(S2) in uppercase only. Take the
input for S1 and S2 from user with the help of function only

Answers

Answered by sharadpadir1998
1

Answer:

#include <stdio.h>

int main() {

char s1[100] = "programming ", s2[] = "is awesome";

int length, j;

// store length of s1 in the length variable

length = 0;

while (s1[length] != '\0') {

++length;

}

// concatenate s2 to s1

for (j = 0; s2[j] != '\0'; ++j, ++length) {

s1[length] = s2[j];

}

// terminating the s1 string

s1[length] = '\0';

printf("After concatenation: ");

puts(s1);

return 0;

}

Similar questions