{ "metadata": { "name": "", "signature": "sha256:74e91fb616db3aa96bac711fa075c7c19a951b52d2e8ba98c61929ac216b2aca" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 11: Pointers" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example maxmin.c, Page 250" ] }, { "cell_type": "code", "collapsed": false, "input": [ "N=10\n", "def max_min(a,n): #function definition\n", " max=a[0]\n", " min=a[0]\n", " for i in range(n-1): #calculating max and min from list\n", " if(a[i+1]>max):\n", " max=a[i+1]\n", " elif(a[i+1]