C-Programming Solved Questions

Write a function that takes a string from the user, if the length of the string is 7 then it displays the middle character of that string, and the function returns, otherwise the user is asked to input another string. [BIM 2014]#include<stdio.h>#include<string.h>int main(){char a[30];char b;int i;start:printf(“enter a string of 7 character “);scanf(“%s”,a);if(strlen(a)!=7)goto start;elseprintf(“the mid char […]