Showing posts with label C Language. Show all posts
Showing posts with label C Language. Show all posts

3 May 2014

Some FON Programming Definitions That may be Useful....

  1. Write a C Program which demonstrates byte-stuffing framing technique, where sender reads data from file, stuffs necessary details and send it to receiver. Both sender and receiver are capable enough to handle multiple/combination occurrences of flag/escape sequences. Receiver display original message after de – stuffing if required. For sender/receiver communication use IPC mechanism FIFO/Named Pipes in Linux/Unix environment.

  2. Write a C Program which demonstrates character-count technique, where sender reads a string from a file and sends it to receiver along with the count of characters of the string in a single frame. Receiver must display the original message along with the length received. Assume that communication channel is noiseless. For sender/receiver communication use IPC mechanism FIFO or Named Pipes in Linux/Unix environment.

  3. Write a C Program which implements checksum technique. Sender reads data from file then appends checksum information and send it to receiver. Receiver must display the original message after checking the checksum information. For sender/receiver communication use IPC mechanism FIFO/Named Pipes in Linux/Unix environment. Use bit-wise operator only whenever necessary.

  4. Write a C Program which simulates stop-n-wait protocol. Sender sends a frame of data and then waits for positive ACK from receiver. Receiver must display original message received via channel. The data to be sent to the receiver is read from a file by the sender. Assume that communication channel is noiseless. For sender/receiver communication use IPC mechanism FIFO or Named Pipes in Linux/Unix environment.

  5. Write a C Program which simulates simplex protocol. Sender side is going to send data (any number/character) as soon as it receives a ‘send request’ from network layer. Receiver must display original message received via channel. Assume that communication channel is noiseless. There is no need to implement timer/ Lost-ACK logic. Implement channel using the IPC mechanism FIFO or Named Pipes in Linux/Unix so that both the programs are able to communicate. The data to be sent is read from an existing file and not to be taken as input from the user.

  6. Write a C program to read data from file. Sender generates Hamming Code for given data using bitwise operators only. Hamming code is send to receiver via named pipes. Receiver should correct the error if any and display the appropriate output. Implement channel using the IPC mechanism FIFO or Named Pipes in Linux/Unix so that both the programs are able to communicate.

  7. Demonstrate bit-stuffing techniques using C program. Sender stuffs 0 after five consecutive occurrences of 1. Receiver must identify this situation and display original message. Message to send is to read from file. Implement channel using the IPC mechanism FIFO or Named Pipes in Linux/Unix so that both the programs are able to communicate. Use bit-wise operators to perform the stuffing operation.
Reference:-
 Last Year GTU Practicle Paper

29 Apr 2013

Five PDF Books For C Programming That You Might Don't Know About.......

C Programming
The C Programming Language
by Brian W. Kernighan & Dennis M. Ritchie
                This book is meant to help the reader learn how to program in C. It contains a tutorial introduction to get new users started as soon as possible, separate chapters on each major feature, and a reference manual. Most of the treatment is based on reading,writing and revising examples, rather than on mere statements of rules. For the most part, the examples are complete, real programs rather than isolated fragments. All examples have been tested directly from the text, which is in machine-readable form. Besides showing how to make effective use of the language, we have also tried where possible to illustrate useful algorithms and principles of good style and sound design.


Fundamentals of C Programming
by Dilum Bandara
                This book is written by Dilum Bandara. This book is affiliated to the Faculty of Computer science and engineering in the university of Moratuwa, Sri Lanka. As Per my reading this book is suitable for all trainees who are learning A B C of language C.



C Language Tutorial
by Gordon Dodrill, Coronado Enterprise.
                This version of the tutorial is customised to suit HiTech C. The original MS-DOS version by Gordon Dodrill was ported to the Applix 1616 (with great effort) by Tim Ward, and typed up by Karen Ward. The programs have been converted to HiTech C by Tim Ward and Mark Harvey, while Kathy Morton assisted greatly in getting Visual Calculator working. All have been tested on the Applix 1616/OS multitasking operating system. The Applix distribution disks contain the complete original text of this tutorial, plus all the converted C source code. The second disk contains executable, relocatable versions of all the programs, ready to run on an Applix 1616. There is also a directory of the original IBM source code, for those using IBM computers, who may wish to try them with a different compiler.
                    This printed version has been edited, indexed and pretty printed by Eric Lindsay, who added the Applix specific material. This printed version of the tutorial includes copies of all the code, for easier reference. It also includes a comprehensive table of contents, and index.



Essential C
by Nick Parlante
                                 This Stanford CS Education document tries to summarize all the basic features of the C language. The coverage is pretty quick, so it is most appropriate as review or for someone with some programming background in another language. Topics include variables, int types, floating point types, promotion, truncation, operators, control structures (if, while, for), functions, value parameters, reference parameters, structs, pointers, arrays, the preprocessor, and the standard C library functions.

 
OUCS  Programming in C

by Original Author: Stephen Gough
Revised by: Brevan Miles


                                          This userguide was written to complement the Oxford University Computing Service course Programming in C, but also to serve as a reference to the essential aspects of C. It aims to introduce the C language to those already familiar with programming in another language (as covered on Introduction to programming in Pascal or Introduction to programming in Visual Basic courses). It will show how fundamental programming structures are implemented using the syntax of C. This guide and the OUCS course will teach ANSI C (see [5]), but where it differs significantly from Kernighan and Ritchie (K&R) C, the K&R method may have been included. It is useful to see the K&R variants, as it is possible that you will encounter K&R code.



Comments

© 2013-2016 ITTechnocrates. All rights resevered. Developed by Bhavya Mehta