



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is lab manual in form of lecture slides for Introduction to Programming course. It was delivered by Prof. Abhimoda Arora at Alagappa University. It includes: Integers, Array, Value, Occurence, Shofting, Element, Program, Display, Appending, Code, Reverse, Order
Typology: Exercises
1 / 7
This page cannot be seen from the preview
Don't miss anything!




๎ Write a program that asks the user to type 10 integers of an array and an integer value V. The program must search if the value V exists in the array and must remove the first occurrence of V, shifting each following element left and adding a zero at the end of the array. The program must then write and display the final array.
๎ Write a program that asks the user to type 10 integers of an array and an integer value V and an index value i between 0 and 9. The program must put the value V at the place i in the array, shifting each element right and dropping off the last element. The program must then write the final array.
๎ Write a piece of code which prints the characters in a cstring in a reverse order. ๎ char s[10] = "abcde"; ๎ char* cptr; ๎ ๎ // WRITE YOUR CODE HERE
๎ Write a program that outputs all the prime numbers till the number entered by the user
๎ Perform 4-letter WORD UNSCRAMBLING i.e. List all possible combinations of 4-letters in a word. Ex: The word 'TEST' can be unscrambled as TEST,TETS,TSET,TSTE,TTSE,TTES,etc.