Answered step by step
Verified Expert Solution
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;
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started