Page 9 - C++
P. 9

so on.
                     For example: if initially the array was:-

                                            5        6       10       2

                                            2        6        9       12

                                            18      14        5       6
                     Then, the contents of the array after execution of the above function will be:-

                                            5        5       5        5

                                            2        6        6       6

                                            18      14       14       14

               (e)   Evaluate the following POSTFIX expression. Show the status of Stack after execution of        2
                     each operation separately:

                                   TRUE, FALSE, OR, NOT, TRUE, FALSE, AND, OR
        Q4.  (a)     Answer the questions (i) & (ii) in the program segment given below for the required task.     1



















































                         (i)    Write Statement 1 to position the file pointer to the appropriate place so that

                                the data updation is done for the correct Route.
                         (ii)   Write Statement 2 to perform the write operation so that the updation is done

                                                       Page No. 7
   4   5   6   7   8   9   10   11   12   13   14