jagomart
digital resources
picture1_Lecture4


 145x       Filetype PDF       File size 0.07 MB       Source: www.cs.cornell.edu


File: Lecture4
pointers and storage classes coms113 february 8 1999 announcements assignment 2 can be turned in tuesday o ce hours today 2 00 3 30 in upson 5162 assignment 3 short ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
             Pointers and Storage Classes
                       COMS113
                     February 8, 1999
      Announcements
      Assignment 2 can be turned in Tuesday; oce hours
      today 2:00{3:30 in Upson 5162
      Assignment 3 (short!) available, due Friday
      Read Ch. 8 in C by Dissection or K&R 5.1{5.9
                                                       1
      Pointers and const
      const int a;   /* a is a const int */
      const int *b;  /* b is a pointer to a const int */
      int * const c; /* c is a const pointer to int */
      const int * const d; /* d is a const pointer
                                     to a const int */
                                                      2
       Pointers to void
       One pointer can be assigned to another only if both
       have same type or one is pointer to void
       void * is used as a generic pointer type
       malloc() returns a pointer to void, so we can assign
       the result to any pointer type without a cast
                                                        3
The words contained in this file might help you see if this file matches what you are looking for:

...Pointers and storage classes coms february announcements assignment can be turned in tuesday o ce hours today upson short available due friday read ch c by dissection or k r const int a is b pointer to d void one assigned another only if both have same type used as generic malloc returns so we assign the result any without cast...

no reviews yet
Please Login to review.