Videofoot.xyz
Категории
  • Авто
  • Музыка
  • Спорт
  • Технологии
  • Животные
  • Юмор
  • Фильмы
  • Игры
  • Хобби
  • Образование
  • Блоги

  • Сейчас ищут
  • Сейчас смотрят
  • ТОП запросы
Категории
  • Авто
  • Музыка
  • Спорт
  • Технологии
  • Животные
  • Юмор
  • Фильмы
  • Игры
  • Хобби
  • Образование
  • Блоги

  • Сейчас ищут
  • Сейчас смотрят
  • ТОП запросы
  1. Главная
  2. Gate CS pyqs - the other way [Eng]

Gate 2016 pyq C Programming | Consider the following program:int f(int *p, int n){ if ...}

Опубликовано: 24 Май 2026
на канале: Gate CS pyqs - the other way [Eng]
1,106
32

Consider the following program:
int f(int *p, int n)
{
if (n LessThanOrEqualTo 1) return 0;
else return max(f(p+1,n-1),p[0]-p[1]);
}
int main()
{
int a[] = {3,5,2,6,4};
printf("%d", f(a,5));
}
Note: max(x,y) returns the maximum of x and y. The value printed by this program is

(A) 2
(B) 3
(C) 4
(D) 5

play_arrow
5,745
264

РИМСКАЯ ИМПЕРИЯ И КИТАЙ. НЕСТОРИАНСТВО НА ДАЛЬНЕМ ВОСТОКЕ | ДАНИИЛ ШУЛЬГА И КИРИЛЛ КАРПОВ

РИМСКАЯ ИМПЕРИЯ И КИТАЙ. НЕСТОРИАНСТВО НА ДАЛЬНЕМ ВОСТОКЕ | ДАНИИЛ ШУЛЬГА И КИРИЛЛ КАРПОВ

play_arrow
470
8

Jaguar: Nature's Stealthy Mastermind

Jaguar: Nature's Stealthy Mastermind

play_arrow
9,617
67

MATLAB Help - Converting Grey Scale to Color with Colormaps

MATLAB Help - Converting Grey Scale to Color with Colormaps

play_arrow
362
4

Teen whoops kids butt

Teen whoops kids butt

play_arrow
2,546
86

ada apa dengan sober roam?

ada apa dengan sober roam?

play_arrow
40
6

Lineage 2 High Five x1 Сражаюсь с монстроглазами и ящерами на пляже  - Прохождение Часть 23

Lineage 2 High Five x1 Сражаюсь с монстроглазами и ящерами на пляже - Прохождение Часть 23

play_arrow
103
4

Tiktok cewek cantik bikin napsu

Tiktok cewek cantik bikin napsu

play_arrow
530
4

Valorant: How to 1 v CLUTCH #4

Valorant: How to 1 v CLUTCH #4

Похожие видео
play_arrow
small update

small update

play_arrow
Gate 2016 pyq C Programming | What is output of following C program?void count(int n){static int d=1

Gate 2016 pyq C Programming | What is output of following C program?void count(int n){static int d=1

play_arrow
Gate 2008 pyq C Programming | Choose the correct option to fill ?1 and ?2 so that the program below

Gate 2008 pyq C Programming | Choose the correct option to fill ?1 and ?2 so that the program below

play_arrow
Gate 2010 pyq C Programming | What does following program print?void f(int *p, int *q){p=q; *p=2;}

Gate 2010 pyq C Programming | What does following program print?void f(int *p, int *q){p=q; *p=2;}

play_arrow
Gate 2010 pyq C Programming | What is the value printed by following C program?int f(int *a, int n){

Gate 2010 pyq C Programming | What is the value printed by following C program?int f(int *a, int n){

play_arrow
Gate 2008 pyq C Programming | C program is given below:int main (){int i, j;char a[2][3]={{'a','b'..

Gate 2008 pyq C Programming | C program is given below:int main (){int i, j;char a[2][3]={{'a','b'..

play_arrow
Gate 2008 pyq C Programming |Consider the code written in C:void f (int n){if (n=1) printf (

Gate 2008 pyq C Programming |Consider the code written in C:void f (int n){if (n=1) printf ("%d", n)

play_arrow
Gate 2014 pyq C Programming | Consider following program in C language:main(){int i; int*pi = &i;

Gate 2014 pyq C Programming | Consider following program in C language:main(){int i; int*pi = &i;

play_arrow
Gate 2011 pyq C Programming |What does the following C program print?    char c[] =

Gate 2011 pyq C Programming |What does the following C program print? char c[] = "GATE2011";

play_arrow
Gate 2016 pyq C Programming | The value printed by the following program is void f(int* p, int m){..

Gate 2016 pyq C Programming | The value printed by the following program is void f(int* p, int m){..

play_arrow
Gate 2016 pyq C Programming |  Consider the following program:int f(int *p, int n){  if ...}

Gate 2016 pyq C Programming | Consider the following program:int f(int *p, int n){ if ...}

play_arrow
Gate 2017 pyq C Programming | The output of executing the following C program is? int total(int v) {

Gate 2017 pyq C Programming | The output of executing the following C program is? int total(int v) {

Videofoot.xyz

На нашем сайте вы можете посмотреть видео со всех уголоков планеты на любой вкус - от музыкальных клипов до мировых новостей! Добро пожаловать на Videofoot.xyz


  • Авто
  • Музыка
  • Спорт
  • Технологии
  • Животные
  • Юмор
  • Фильмы
  • Игры
  • Хобби
  • Образование
  • Сейчас ищут
  • Сейчас смотрят
  • ТОП запросы
  • О нас
  • Карта сайта

[email protected]