0 evaluări0% au considerat acest document util (0 voturi)
117 vizualizări2 pagini
Explain the program life cycle along with the terms : Preprocessor, Compiler, Linker, Loader Explain any three escape sequences. Compare machine language to assembly language. Do as directd. Answer the TWO Explain comma operator. Explain lvalue and rvalue with example. Explain sentinel value. Give Output / error of following code void main( ) 2 double d = 1 / 2. - 1 / 2; printf("d = %.
Explain the program life cycle along with the terms : Preprocessor, Compiler, Linker, Loader Explain any three escape sequences. Compare machine language to assembly language. Do as directd. Answer the TWO Explain comma operator. Explain lvalue and rvalue with example. Explain sentinel value. Give Output / error of following code void main( ) 2 double d = 1 / 2. - 1 / 2; printf("d = %.
Drepturi de autor:
Attribution Non-Commercial (BY-NC)
Formate disponibile
Descărcați ca DOC, PDF, TXT sau citiți online pe Scribd
Explain the program life cycle along with the terms : Preprocessor, Compiler, Linker, Loader Explain any three escape sequences. Compare machine language to assembly language. Do as directd. Answer the TWO Explain comma operator. Explain lvalue and rvalue with example. Explain sentinel value. Give Output / error of following code void main( ) 2 double d = 1 / 2. - 1 / 2; printf("d = %.
Drepturi de autor:
Attribution Non-Commercial (BY-NC)
Formate disponibile
Descărcați ca DOC, PDF, TXT sau citiți online pe Scribd
1 Explain the program life cycle along with the terms : Preprocessor, [04] Compiler, Linker, Loader 2 Explain any three escape sequences. [03] 3 Compare machine language to assembly language. [03] 4 Explain 4GL. [02] Q.2 Do as directd. [12] A Answer the TWO [04] 1 Explain comma operator. 2 Explain lvalue and rvalue with example. 3 Explain sentinel value. B Answer the following [04] 1 -17%5 and -17%-5 produce same results. True/False 2 printf(“%#6x”,1234) prints 0X4D2 on screen. True/False 3 Represent -8.375X10-3 in IEEE single-precision format.
C Give output/error of following code [04]
1 void main( ) 2 void main( ) { double d = 1/2.0 – 1/2; { int i = 9; printf(“d = %.2lf”,d); i=printf(“clever”)+printf(“student”); } printf(“%d”,i); } 3 void main( ) 4 void main( ) { int x = 20, y = 35; { char s1[]=”manas”; x = y++ + x++; char s2[]=”ghosh”; y = ++y + ++x; s1 = s2; printf(“x=%d y=%d”,x,y); printf(“%c”,toupper(s1[1])); } } OR C Write a short note about int datatype. [04] Q.3 Answer any THREE. [12] A Explain binary search along with a C program. [09] B Explain scanset in detail with suitable examples. C Explain stdin, stdout and stderr. Also show their usage with fprintf and fscanf. D Explain extern and static storage classes along with their scope and extent. E Explain the concept and working of recusion. F Give Output/error: [03] 1 static int f(int val) 2 void f(int _) { { static int sum; int j; sum += val; j = _-- + ++_ - _/2; return sum; printf("%d %d",_,j); } } void main() { void main() int i,n=9; { for(i=1;i<n--;i++) f(9); f(i*2); } printf("%d",f(0)); }
Q.4 Do as directed. [12]
A Explain pointer to function with suitable example. B Explain calloc, realloc, dangling pointer with suitable example. C Explain and differentiate between array-of-pointer and pointer-of-an-array with example. D Give Output/error: 1 void main() 2 void main() { { int a={1,2,3,4,5,6}; int a[]={1,2,3,4,5,6,7,8,9,10}; int *ptr = a+2; printf(“%d”,((a+9)+(a+1))); printf("%d %d",*++a,--*ptr); } } Q.5 Do as directed [12] A Explain enum with suitable examples. B Explain bitfields with suitable examples. C Explain fseek, ftell, rewind with suitable example. D Explain any three bitwise operators.
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft OneNote Guide to Success: Learn In A Guided Way How To Take Digital Notes To Optimize Your Understanding, Tasks, And Projects, Surprising Your Colleagues And Clients