logo

Crowdly

What is the output of the following program? #include <stdio.h> #include <...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following program?

#include <stdio.h>

#include <string.h>

void foo(char []);

int main()

{

  char arr[40] = "Plaksha";

  printf("%d, %d\n", sizeof(arr), strlen(arr));

  foo(arr);

  return 0;

}

void foo(char p[])

{

  printf("%d, %d\n", sizeof(p), strlen(p));

  return;

}

More questions like this

Want instant access to all verified answers on dle.plaksha.edu.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!