Skip to content

Harshwardhan-13/HPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Write a program that declares an integer variable, assigns it a value, and then prints its address using a pointer. Create a program that swaps two integers using pointers. Declare an integer array, initialize it, and use a pointer to print each element in the array. Develop a program that computes the sum of elements in an integer array using a pointer. Write a program that takes an array of integers and reverses it using pointers. Create a program to find the largest and smallest elements in an array using pointers. Write a program that uses a function pointer to call a function that adds two integers. Create a menu-driven program where different operations (like addition, subtraction, multiplication, division) are performed using function pointers. Write a program to dynamically allocate memory for an array of integers, initialize it with values, and then free the allocated memory. Develop a program to dynamically allocate memory for a string, take input from the user, and then print the string. Write a program that prints the number of command-line arguments passed to it. Create a program that prints each command-line argument on a new line. Write a program that prints the number of command-line arguments passed to it. Create a program that prints each command-line argument on a new line. Write a program that takes a single string from the command line and reverses it. Create a program that takes multiple strings from the command line and concatenates them into a single string. Develop a program that takes a list of integers from the command line and calculates their average. Write a program that checks if the correct number of command-line arguments are provided and prints an error message if not. Develop a program that validates whether the command-line arguments are integers and prints an error message for invalid inputs. Write a program that prints all the environment variables passed to it. Create a program that takes the name of an environment variable from the command line and prints its value. Create a program that takes a list of commands from the command line and executes them sequentially.

About

HPC-Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages