Question Bank. Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example.

Slides:



Advertisements
Similar presentations
Lecture 27: FILE HANDLING in C Language FILE HANDLING in C Language-2 Lecture 27.
Advertisements

Etter/Ingber Arrays and Matrices. Etter/Ingber One-Dimensional Arrays 4 An array is an indexed data structure 4 All variables stored in an array are of.
Introduction to C Programming
Unit 10 Miscellaneous Advanced Topics Introduction to C Programming.
Programming in C Chapter 10 Structures and Unions
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect FXP. 1Winter Quarter Course Wrap Up and Final Review Topics Lecture.
Programming Languages and Paradigms
Chapter 9 Pointers and Dynamic Arrays. Overview 9.1 Pointers 9.2 Dynamic Arrays.
Programming Languages and Paradigms The C Programming Language.
Data Structures Using C++1 Chapter 3 Pointers and Array-Based Lists.
Structures Spring 2013Programming and Data Structure1.
What is a pointer? First of all, it is a variable, just like other variables you studied So it has type, storage etc. Difference: it can only store the.
Chapter 7: User-Defined Functions II
ECE 353: Lab C Pointers and Structs. Basics A pointer holds an address to some variable Notation: – Dereferencing operator: * int *x is a declaration.
Guide To UNIX Using Linux Third Edition
Chapter 11 Structure. 2 Objectives You should be able to describe: Structures Arrays of Structures Structures as Function Arguments Dynamic Structure.
C FAQ’S Collected from the students who attended technical round in TCS recruitment.
EGR 2261 Unit 10 Records (structs)
Chapter 19 Data Structures Data Structures A data structure is a particular organization of data in memory. We want to group related items together.
Overview of Previous Lesson(s) Over View  OOP  A class is a data type that you define to suit customized application requirements.  A class can be.
C Course Lecture 4 This lecture we'll talk about: Multi-dimensional arrays. Pointer arithmetic. Pointers to structures. Multi-file programming. What is.
1 Further C  Multiple source code file projects  Structs  The preprocessor  Pointers.
Chapter 19 Data Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Data Structures A data structure.
6. More on Pointers 14 th September IIT Kanpur C Course, Programming club, Fall
Pointer. What is pointer ? A Pointer is nothing but a variable that contains an address which is a location of another variable in memory. If one variable.
Introduction to Arrays in Java Corresponds with Chapter 6 of textbook.
CS212: Object Oriented Analysis and Design Lecture 7: Arrays, Pointers and Dynamic Memory Allocation.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 6 (Pointers) © CPCS
Chapter 15 Introduction to PL/SQL. Chapter Objectives  Explain the benefits of using PL/SQL blocks versus several SQL statements  Identify the sections.
 Structures are like arrays except that they allow many variables of different types grouped together under the same name. For example you can create.
A FIRST BOOK OF C++ CHAPTER 16 DATA STRUCTURES. OBJECTIVES In this chapter, you will learn about: Single Structures Arrays of Structures Structures as.
Chapter 13: Structures. In this chapter you will learn about: – Single structures – Arrays of structures – Structures as function arguments – Linked lists.
C Programming – Part 3 Arrays and Strings.  Collection of variables of the same type  Individual array elements are identified by an integer index 
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Lucas Bang Lecture 13: Data structures in C.
Functions in C CSE 2451 Rong Shi. Functions Why use functions? – Reusability Same operation, different data – Abstraction Only need to know how to call.
CS-1030 Dr. Mark L. Hornick 1 Basic C++ State the difference between a function/class declaration and a function/class definition. Explain the purpose.
More About Data Types & Functions. General Program Structure #include statements for I/O, etc. #include's for class headers – function prototype statements.
C LANGUAGE Characteristics of C · Small size
Chapter 12: Programming in the Large By: Suraya Alias 1-1.
Arrays as pointers and other stuff COP3275 – PROGRAMMING USING C DIEGO J. RIVERA-GUTIERREZ.
EEL 3801 C++ as an Enhancement of C. EEL 3801 – Lotzi Bölöni Comments  Can be done with // at the start of the commented line.  The end-of-line terminates.
Lecture 15: Course Review BJ Furman ME 30 16MAY2011.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman CP 202 Chapter 6.
1 CSC103: Introduction to Computer and Programming Lecture No 16.
1 Pointers: Parameter Passing and Return. 2 Passing Pointers to a Function Pointers are often passed to a function as arguments  Allows data items within.
Pointer Data Type and Pointer Variables III CS1201: Programming Language 2 By: Nouf Aljaffan Edited by : Nouf Almunyif.
1 CSC103: Introduction to Computer and Programming Lecture No 17.
LECTURE 3 Translation. PROCESS MEMORY There are four general areas of memory in a process. The text area contains the instructions for the application.
TCCICOMPUTERCOAC HING.COM.  TCCI’s main focus is to develop logical skill of the students, so it will help students to write code their self in any.
Lecture 3 Translation.
Outcome based Learning Objectives
User-Written Functions
Introduction to Computers Computer Generations
Chapter 10-1: Structure.
FUNCTIONS In C++.
C++, OBJECT ORIENTED PROGRAMMING
Function There are two types of Function User Defined Function
Module 4 Functions – function definition and function prototype.
Prepared By: G.UshaRani B.Pranalini A.S.Lalitha
11/10/2018.
Chapter 9: Records (structs)
Chapter 9: Records (structs)
Chapter 9: Records (structs)
Arrays.
Chapter 9: Pointers and String
Quick Review EECS May 2019.
C Language B. DHIVYA 17PCA140 II MCA.
Course Outcomes of Programming In C (PIC) (17212, C203):
Chapter 9: Records (structs)
SPL – PS2 C++ Memory Handling.
Presentation transcript:

Question Bank

Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example Difference between call by reference and call by value Write a note on Dynamic memory allocation in C Explain command line argument Write a note on built in functions in c Explain control statements in structure in C Write a struct definition and define an array of such structures

Question Bank What are the different string handling functions in C Write a note on Macro Write a program to add two numbers using pointers What is C-tokens and types Explain the difference between while loop and do while loop in C How to initialize an array with example Define structure What are functions, what are the different forms of functions

Question Bank What are the bitwise operators in C? Main() is a user defined function, how does it differ from user defined functions What is a file pointer, what are the options available in fopen() Explain any 4 keywords and its meanings Write two declarations in C, one representing an array of pointers and other representing pointer to an array Write a function that takes a string as an argument, return its length as output

Question Bank How can a function return a pointer to its calling routine? Explain how the address of elements of an array can be obtained? Explain bitwise AND operator, X=13, Y=25. What is the value of Z=X AND Y? Explain the uses of bitwise AND, OR and NOT with example Write a note on files and different file handling functions in C Write a program to copy the content of one file to another?