Most of the games these days don't use any programming language directly for development, they use game engines that are made using programming languages such as c,c++ and java. Few examples of game engines are Unity, CryEngine, UnrealEngine etc.
Lets understand what Game engines are
Game engines are software development environment that are used to develop video games. You can develop PC games, console games and even mobile games on it. The main functionalities provided by game engines are rendering engine ("renderer") for 2D or 3D graphics, a physics engine or collision detection (and collision response), sound, scripting, animation, artificial intelligence, networking, streaming, memory management, threading, localization support, scene graph, and may include video support for cinematics.
One of most famous games right now, pubg has used the game engine UnrealEngine 4 that uses c++.