Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language = C. Please give an answer with an explanation for both questions. Q2 a) age == *p b)age == **q c) age == *q

Language = C. Please give an answer with an explanation for both questions.

image text in transcribed

Q2 a) age == *p b)age == **q c) age == *q d) p ==*q e)none

Assuming that binary file my bin stores tests results where each test result is a doubie. The file is opened double results(5] a) fseek(fp., -3, SEEK END) using the file descriptor fp. Which sequence of code will read last three test results into an array results which is declared as fread(results, sizeof(double), 3, fp): b) fseek(p, 3'sizeof double), SEEK END) fread(results, sizeof(double), 3. fp) b) fseek(fp, 0, SEEK END); rc ftell (fp rc rc-3 sizeof (double); fseek(fp. -rc, SEEK END) fread(results, sizeof double), 3, fp); d) fseek(fp, 0, SEEK END) fseek(fp, -3 sizeof(double), SEEK CUR) fread results, sizeofdouble), 3.fp) e) fseek(fp, 3 sizeof(double), SEEK SET) fread(results, sizeof double), 3, fp) Given the following, which of the following expressions is NOT true? int age int p. "q p Bage

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_2

Step: 3

blur-text-image_3

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions