Posts

Showing posts from May, 2018

DATA STRUCTURES IN C.

Image
Data structures through C lang. Data structure is a way to store and organize the data in computer so that it can used efficientaly data structure have two type 1) abstract data type(ADT)(mathematical and logical data type)   2) implementation  data type  list abstract data type is not memory efficient in terms of inserting and removing the data from an array  here time require is (T dirc.n) where n is the number element in an array that is if we are using just array for storing the data then at the time of inserting the new data into an array then array will shift a whole bytes from array in Linked list node are available node=int value + add. of next node  Θ ---------------------------------------------------------------------------- # Algorithms & Data Structures: Q. What is data structure? - it is a way to store data into the memory(main memory) in an oraganized manner so that we can perform operations on it efficiently. ...

8085 microprocessor

Short notes on 8085 microprocessor  • It has 8 bit ALU • It has 8 bit data bus  • It has 8 bit GPRS • Data bus are bidirectional while address bus are unidirectional  • It has 16 bit address bus that means it has 2^16 locations= 64kb  • It has operating frequency 3.14Mhz nearly 3Mhz • Crystal is connected to outside of the processor • Operating freq. = (crystal freq. / 2) • T_state = T_clk  • Machine cycle = time taken to perform memory or I/O operations  • Opcode fetch 4T • Mem. Read & Write 3T states separately • I/O read & write 3T states separately • 1 T = 0.5 µsec means for 4T = 4*0.5µ=2µsec • 8085 • 8 – 8 bit processor • 8 – 8  h/w interrupts • 5 – 5 S/W interrupts • Multiplexing is used to reduce the pins but also decrease the speed of processor • A0 to A7 add. Bits are multiplexed with D0 to D7 data bits  • ALE(address latch enable) when ALE =1 then A0 to A7 are active when ALE = 0 D0 to ...

C language smart notes for MCQ

Image
C-----notes ·         Integer constant range -32768 to 32767 ·         Real constant range -3.4e38 to 3.4e38(must be decimal) ·         Character constant is single digit single alphabet with single inverted commas ‘A’ ·             It is the combination of   1 to 31 digits, alphabet,underscores ·         Keywords are the words that already defined in c compiler ·         Keyword must not same as like variables ·         There are 45 operators in c and there is no operator for exponentiation ·         the variables and constants together are called ‘operands’ ·         b = 3 ^ 2 ; this is not a valid statement If we want to do the exponentiation we c...