Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Student Name Part 2 Short answers (22 points in total, 2 points for each): 1. To compare two strings, what library function can be used?

image text in transcribed
Student Name Part 2 Short answers (22 points in total, 2 points for each): 1. To compare two strings, what library function can be used? 2. In order to call that library function in above question, what do we need to write at the beginning of file? nadwStmn 3. int i-1: double k-2.343 Can we write i-k to convert a double to int without warnings at compile tme? If not, how to correct it? 4 int number 3320; printf ("course no. 6d", number); what is the meaning of the number 6 in %6d? 5. The difference between argument and parameter. A string is defined as char str[10o). How to get the input from user (use scanf) and store a string (no space in it) into str? How to print out the string in str (use print)? 6. 7, Assume a structure is defined as below in C. what is the minimum size of this structure type? Assume char type occupies one byte, and int type occupies four bytes. struct student ( int ID; char firstName [101 char lastName [101 li Declare a tag color for an enumeration whose values represent the three colors Red, Blue and Green 8

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

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions