Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. In a C language program, a constant can be defined as: (a) #include constant.h (b) #typedeff int x (c) #define Pl=3.14 (d) float d=35;

image text in transcribedimage text in transcribed

6. In a C language program, a constant can be defined as: (a) \#include "constant.h" (b) \#typedeff int x (c) \#define Pl=3.14 (d) float d=35; 7. A non-static variable that is declared outside a block or functions is (a) local variable (b) pointer (c) address (d) global variable 8. Which of following C-program statement is syntactically incorrect? (a) \#define Pi2V 3.14159 (b) int n79=8; (c) int 3num=7; (d) char letter='A'; 9. An array in a C program is defined as: (a) A data structure having all types of data (b) Bitwise operator (c) Library function (d) A data structure that holds data of same type Consider the following C program \# include int main( ) \{ char segment [7]="2022", *ptr; ptr = segment +2; *ptr = 'o' ; printf ("\%s", segment); \} What will be the output on the standard screen when the above code is executed? (a) 2000 (b) 2200 (c) 2002 (d) 2202

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions