Posts

Showing posts from June, 2022

Assignment 2(Trace output) Sem-II

                                              Assignment 2 ( Trace Output)   1) What will be output of the following program?   #include <stdio.h>   int main(){ int x; x=10,20,30; printf( "%d" ,x); return 0; }   Explanation: Precedence table:   Operator Precedence Associative = More than , Right to left , Least Left to right   Since assignment operator (=) has more precedence than comma operator .So = operator will be evaluated first than comma operator. In the following expression x = 10, 20, 30 First 10 will be assigned to x then comma operator will be evaluated.   ...
                                                             Assignments 1 1) Give the use of rewind ( ) function. 2) What is dynamic memory allocation?   3) Which function is used to join two strings? Give syntax.   4) Give the difference between structure and union. 5) Which function is used to move file pointer? 6) What is macro?Explain the types of macros? 6) Give syntax and use of following functions:   i) strlen                 ii) strcat               iii) strcmp          ...

CS:101 Problem solving Using C(Question Bank)

                            Problem solving Using C(Question Bank)  1) Give syntax and use of following functions: i) getchar ii)putchar iii)puts iv)printf v)scanf vi)gets 2)Explain different types of operators available in C. 3)Explain the structure of C program. 4)Write algorithm and draw flowchart   to find out factorial of a number. 5)What is machine language? 6)Define operator 7)What   is   a   compiler   ? 8)Explain   ones   complement   operator   with   example. 9)What   is   an   identifier   ?   Give   the   rules   of   identifier. 10)Write   an   algorithm   and   draw   a   flowcahrt   to   find   the   maximumof   3   no's. 11)Find   the   output   of   the   following ...