diff options
Diffstat (limited to 'Let_us_C/chapter-9.ipynb')
-rw-r--r-- | Let_us_C/chapter-9.ipynb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Let_us_C/chapter-9.ipynb b/Let_us_C/chapter-9.ipynb index 1f588a47..e74e2dd8 100644 --- a/Let_us_C/chapter-9.ipynb +++ b/Let_us_C/chapter-9.ipynb @@ -25,7 +25,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate printing of a string'''\n",
"\n",
"#Variable declaration\n",
"name= \"Klinsman\" # character array or string\n",
@@ -67,7 +66,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate printing of a string'''\n",
"\n",
"#Variable declaration\n",
"name= \"Klinsman\\0\" # character array or string\n",
@@ -109,7 +107,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to print a string using a pointer to access the array elements'''\n",
"\n",
"#Variable declaration\n",
"name = \"Klinsman\\0\" # string or character array\n",
@@ -153,7 +150,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate the 'strlen' function '''\n",
"\n",
"\n",
"#Variable declaration\n",
@@ -192,8 +188,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate a function that\n",
- "counts the number of characters present in a string'''\n",
"\n",
"#Function definition\n",
"def xstrlen(s):\n",
@@ -238,7 +232,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate the 'strcpy' function '''\n",
"\n",
"\n",
"#Variable declaration\n",
@@ -278,8 +271,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate a function that\n",
- "copies the contents of one string into another'''\n",
"\n",
"#Function definition\n",
"def xstrcpy (t,s):\n",
@@ -324,7 +315,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate the 'strcat' function'''\n",
"\n",
"#Variable declaration\n",
"source = \"Folks!\" \n",
@@ -360,7 +350,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to demonstrate the 'strcmp' function'''\n",
"\n",
"#Variable declaration\n",
"string1 = \"Jerry\\0\" \n",
@@ -414,9 +403,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program asks you to type your name. When you do so, it checks your\n",
"name against a master list to see if you are worthy of\n",
- "entry to the palace'''\n",
"\n",
"\n",
"#Function definition\n",
@@ -481,7 +468,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to exchange names using 2-D array of characters'''\n",
"\n",
"#Variable declaration\n",
"names = [\"akshay\\0\\0\\0\",\"parag\\0\\0\\0\\0\",\"raman\\0\\0\\0\\0\",\"srinivas\\0\",\"gopal\\0\\0\\0\\0\",\"rajesh\\0\\0\\0\"]\n",
@@ -524,7 +510,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to exchange names using 2-D array of characters'''\n",
"\n",
"#Variable declaration\n",
"names = [\"akshay\\0\\0\\0\",\"parag\\0\\0\\0\\0\",\"raman\\0\\0\\0\\0\",\"srinivas\\0\",\"gopal\\0\\0\\0\\0\",\"rajesh\\0\\0\\0\"]\n",
@@ -565,8 +550,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to illustrate the solution to the problem of limitation\n",
- "of Array of Pointers to Strings'''\n",
"\n",
"import copy\n",
"\n",
|