About

C-Language

FUNCTIONS & ARRAYS(BITS)1.Doccumentation tool that shows relationship among the sub-problems to the original problem is called structure chart. 2. The method used in solving a major problem by breaking it into sub-problems and solving them individually is called topdown method (or) topdown design (or)modularity. 3. A self contained block of a program which performs a specific well defined task is called function. 4. The function that should be used in every c program is main( ). 5.Declaration of all functions that are to be used in program is called prototype declaration (or)function prototype. 6.void fun( ) returns nothing.

You May Also Find These Documents Helpful

...Subscribe to free updates via email.
Favourite 50 – C Interview Question Bank
for freshers and experienced IT programmers
Written by Madhulika Reddy and Dhoka Ratan. Edited and Published by Sridhar Jammalamadaka
Get the latest updates and news on topics Career and Education from Interview Mantra – Subscribe to Interview Mantra for free.
ABOUT THIS BOOK
This book comprises of Interview Questions and Answers collected from the famous career advice blog www.InterviewMantra.net The aim of this book is to help freshers and experienced programmers to quickly brush up the basic concepts of Clanguage. This book can be used as a quick study guide before attending a job interview which requires knowledge of C programming language. The questions that appear in this book are few of the most frequently asked questions in IT Job interviews in top MNC companies. All the questions have been neatly answered and have been supported with example code wherever applicable. A lot of effort has been put into this book to make the answers as accurate as possible, but no warranty or fitness is implied. The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the programs accompanying it. Please send your feedback to us via email to sridhar@interviewmantra.net...

...Pascal is much more ALGOL-like than C. English keywords are retained where C uses punctuation symbols – Pascal has and, or, and mod where C uses &&, ||, and % for example. However, C is actually more ALGOL-like than Pascal regarding (simple) declarations, retaining the type-name variable-name syntax. For example, C can accept declarations at the start of any block, not just the outer block of a function.
Semicolon use
Another more subtle difference is the type of delimiter used. In Pascal semicolons separate individual statements within a compound statement and also used to terminate a statement. They are also syntactically part of the statement itself in C (transforming an expression into a statement). This difference manifests itself primarily in two situations:
• there can never be a semicolon directly before else in Pascal whereas it is mandatory in C (unless a block statement is used)
• the last statement before an end is not required to be followed by a semicolon
A superfluous semicolon can be put on the last line before end, thereby formally inserting an empty statement.
Comments
In traditional C, there are only /* block comments */. This is only supported by certain Pascal dialects like MIDletPascal.
In traditional Pascal, there are { block comments } and (* block comments *). Modern Pascal, like Object Pascal (Delphi, FPC), as well as modern...

...A Tutorial on Pointers and Arrays in C
A TUTORIAL ON POINTERS AND ARRAYS IN C by Ted Jensen Version 1.1 (HTML version) July 1998
This material is hereby placed in the public domain Available in various formats via http://www.netcom.com/~tjensen/ptr/cpoint.htm
TABLE OF CONTENTS
Preface Introduction Chapter 1: What is a Pointer? Chapter 2: Pointer Types and Arrays. Chapter 3: Pointers and Strings Chapter 4: More on Strings Chapter 5: Pointers and Structures Chapter 6: More on Strings and Arrays of Strings Chapter 7: More on Multi-Dimensional Arrays Chapter 8: Pointers to Arrays Chapter 9: Pointers and Dynamic Allocation of Memory Chapter 10: Pointers to Functions
file:///E|/My%20eBooks/_ESSENTIALS_/A%20Tutorial%...orial%20on%20Pointers%20and%20Arrays%20in%20C.htm (1 of 2)3/18/2007 12:09:49 AM
A Tutorial on Pointers and Arrays in C
Epilog
file:///E|/My%20eBooks/_ESSENTIALS_/A%20Tutorial%...orial%20on%20Pointers%20and%20Arrays%20in%20C.htm (2 of 2)3/18/2007 12:09:49 AM
Preface
PREFACE
This document is intended to introduce pointers to beginning programmers in the C programming language. Over several years of reading and contributing to various conferences on C including those on the FidoNet and UseNet, I have noted a large number of newcomers to C appear to have a difficult time in grasping the fundamentals of pointers. I therefore undertook the task...

...www.jntuworld.com
www.jwjobs.net
C Programming & Data Structures
UNIT-1
Introduction to Computers:
A computer system consists of hardware and software. Computer hardware is the collection of physical elements that comprise a computer system. Computer software is a collection of computer programs and related data that provides the instructions for a computer what to do and how to do it. Software refers to one or more computer programs and data held in the storage of the computer for some purposes. Basically computer software is of three main types 1. Operating System The Operating System (OS) is an interface between the compute software and hardware. The most popular and latest operating systems include Windows XP, Mac, UNIX, Linux, Windows Vista, etc. 2. Application Software The application software is widely used for accomplishment of specific and precise tasks which is a step ahead than the basic operations or running of the computer system. The application software includes printing documents, and permitting access to internet for web and video conferencing activities. The Application software indirectly does the interaction with the machine to perform all these functions. 3. System Software System software directly interacts with computer hardware. Some of the examples are the device drivers for CPU, Motherboard, Mouse, Printer, Keyboard, etc. The system software takes the responsibility of control, integration and managing individual hardware...

...explain various operator in java, also comment how they are different from c++.
Operators
After having seen the basic types in Java and how to declare variables of each type, we are now going to show what basic operations can be performed with and on variables of the basic types.
Below is a table summarizing Java operators organized by the type of operation the operator is used for.
There are 8 types of operator that is follow :-
1 )- Arithmetic Operators
2)- Logic Operators
3)- Bitwise Operators
4)- Assignment Operators
5)- The Conditional Operators
6)- Increment and decrement operators
7)- Special operator
8)- Relational operator
Description of these operators :-
Arithmetic Operators
The arithmetic operators -, +, * and / can be used to perform respectively subtraction, addition, multiplication and division with integers and reals.
Example :-
1
2 int result = 3 * 56;
double answer = 3.14 + 2.72;
Logic Operators
The logic operators &&, ||, ! and ^ can be used to perform respectively logical and, or, not and exclusive-or on boolean operands.
Example:
1
2 System.out.println(true || false); /* outputs true */
System.out.println(! true); /* outputs false */
Bitwise Operators
The bitwise operators &, |, ^, ~, and >>> can be used to perform bitwise and, or, exclusive-or, negation, left shift and right shift on integer operands. Note that there are two types of right shift: >> and >>>. The difference...

...Getting Set Up - C++ Compilers
The very first thing you need to do, before starting out in C++, is to make sure that you have a compiler. What is a compiler, you ask? A compiler turns the program that you write into an executable that your computer can actually understand and run. If you're taking a course, you probably have one provided through your school. If you're starting out on your own, your best bet is to use Code::Blocks with MinGW. If you're on Linux, you can use g++, and if you're on Mac OS X, you can use XCode. (If you are stuck using an older compiler, such as Turbo C++, you'll need to read this page on compatibility issues.) If you haven't yet done so, go ahead and get a compiler set up--you'll need it for the rest of the tutorial.
Intro to the C++ Language
A C++ program is a collection of commands, which tell the computer to do "something". This collection of commands is usually called C++ source code, source code or just code. Commands are either "functions" or "keywords". Keywords are a basic building block of the language, while functions are, in fact, usually written in terms of simpler functions--you'll see this in our very first program, below. (Confused? Think of it a bit like an outline for a book; the outline might show every chapter in the book; each chapter might have its own outline, composed of sections. Each section might have its...