Hacker Rank Pointer Problem in C++

Опубликовано: 23 Октябрь 2024
на канале: Code-With-PG
28
1

In this video, I solved hacker rank problem related to pointers in C++.

You can read description of problem in video.

For this problem, We have to solve function taking parameters of integer type.

Prototype of function:
void update(int *a,int *b);

Inputs:
a,b

Operations:

a+b
|a+b| (Mod /Absolute difference)

Input : 4,6
Output : 10 (a+b) , 2 ( |a-b| )




#cpp
#coding
#programming
#development
#problemsolving
#python
#java
#jscript
#csharp
#django
#leetcode
#hackerrank
#chefcode
#angular
#coders
#bugs
#vscode