Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12 What will be output when you will execute following c code char arr [7]-Network printf(%s, arr) ; (b) compiler error (a) Network (c) garbage

image text in transcribed
12 What will be output when you will execute following c code char arr [7]-"Network" printf("%s", arr) ; (b) compiler error (a) Network (c) garbage value (d) none of the above 13 What will be output when you will execute following c code int size = 20 ; int score[size] score [0] = 20 ; printf("%d", score [0]) ; (b) compiler error (a) 20 (c) garbage value (d) none of the above 14 What will be output when you will execute following c code? int als] (5, 1, 15, 20, 25) int m; m ali++ printf("%d, %d, %d", m); (a) 2, 6, 15 (c) 2, 6, 20 (b) 3, 6, 15 (d) none of the above 15 | An array elements are always stored in memory locations. (a) randomly (c) stack (b) consecutive (d) none of the above 16 What s the output of this C code? char str "hello, world ": printf("ad", strlen (str)); (a) compiler error (c )12 (b) 13 (d) none of the above 17 | What is the right way to Initialize array? (a) int num(6) (2, 4,12, 5,45,5) (b) int num(6)-(2, 4, 12, 5, 45, 5 : (c) int num(6)-(2,4, 12, 5, 45, 5 ); (d) none the above 18 For a structure, if a variable behave as a none pointer then from the given below operators which operator can be used to access data of the structure (d) none of the above

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions