Write a program in C: Take input from the command-line (i.e argv[1]) and if it is more than 12 characters print "too lon

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program in C: Take input from the command-line (i.e argv[1]) and if it is more than 12 characters print "too lon

Post by answerhappygod »

Write a program in C:
Take input from the command-line (i.e argv[1]) and if it is more
than 12 characters print "too long". If there are less than 12
characters then print "too short".
Please make sure that the compiler doesn't give any
warnings.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply