Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this exercise in c programming, I already completed a large part but I am struggling with the array reversal. #pragma warning

I need help with this exercise in c programming, I already completed a large part but I am struggling with the array reversal.
image text in transcribed
image text in transcribed
#pragma warning (disable :4996) #include #include typedef enum boolean ( false, trueBoolean; int lengtha; int lengthb; Boolean login) char uname [ 20]; char passwd [ 20 char reverse[ 20 int result; printf("Enter username: getchar (uname); %c ", uname); printf("Enter password : %c ", getchar (passwd); lengthbstrlen (passwd); passwd ); for (int i-(lengthb - 1); i >- 0; i--) printf(c", lengthb); result -strcmp (uname, passwd); if (result0) printf("You are logged inln"); return 1; else return 0 int main) f login)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions