C pointers, Fork, Exec - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

C pointers, Fork, Exec

Description:

http://www.augustcouncil.com/~tgibson/tutorial/ptr.html. An introduction to pointers. http://www.cprogramming.com/tutorial/c/lesson6.html ... – PowerPoint PPT presentation

Number of Views:176
Avg rating:3.0/5.0
Slides: 9
Provided by: cseOhi
Category:
Tags: exec | fork | html | pointers | tutorial

less

Transcript and Presenter's Notes

Title: C pointers, Fork, Exec


1
C pointers, Fork, Exec
2
C pointers quiz
  • 1. Which of the following is the proper
    declaration of a pointer?A. int xB. int xC.
    ptr xD. int x2. Which of the following
    gives the memory address of integer variable
    a?A. aB. aC. aD. address(a)3. Which
    of the following gives the memory address of a
    variable pointed to by pointer a?A. aB. aC.
    aD. address(a)4. Which of the following
    gives the value stored in the integer pointed to
    by the pointer a?A. aB. val(a)C. aD. a

3
  • 5. Which of the following is the proper
    keyword to allocate memory in C?A. newB.
    mallocC. createD. value6. Which of the
    following is the proper keyword to deallocate
    memory?A. freeB. deleteC. clearD. remove

4
Exec and fork
  • The fork system call creates a new process that
    is a clone of the existing one by just copying
    the existing one copying over the instruction,
    user-data and system-data segments!
  • The exec system call reinitializes a process from
    a designated program the program changes while
    the process remains!

5
Variants of Exec
6
An Example
7
(No Transcript)
8
Other pointers
  • C pointers
  • http//www.augustcouncil.com/tgibson/tutorial/ptr
    .html
  • An introduction to pointers
  • http//www.cprogramming.com/tutorial/c/lesson6.htm
    l
Write a Comment
User Comments (0)
About PowerShow.com