#include int strl (char str2[]); int fonk (char c, char p[], int x, int y[]); int main () { char strl [80], chr [80]; int n, i, x, ctr [80]; printf("Enter your student number: "); scanf("%s", strl); n=strl (str1); chr [0]=str1[0]; ctr [0]=1; x=0; for (i=1;ix) return (0); int x, int y[]) {

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter1: Getting Started With Excel
Section: Chapter Questions
Problem 1.9CP
icon
Related questions
Question
How to find output of this c program and if my student number is 2010205505 I can use compilers but I want to learn how to analyze it by hand from where to start which trick should I use as I begginer student
S3)Aşağıdaki c kodunu takip ederek giriş olarak öğrenci numaranızı girdiğinizde oluşacak çıktıyı yazınız. (Write the
output that will appear when you enter your student number as an input by following the C code below.)
Giriş için gerçek öğrenci numaranızı kullanın. (Use your real student number for input.)
Öğrenci No (Student Number):
(buraya yazınız (write here))
#include<stdio.h>
int strl (char str2[]);
int fonk (char c, char p[],
int main() {
char strl [80], chr [80];
int n, i, x, ctr [80];
printf("Enter your student number: ");
scanf ("%s", strl);
n=strl (str1);
chr [0]=str1[0];
ctr [0]=1;
x=0;
for(i=1;i<n; i++)
{
if(! fonk (strl [i], chr, x, ctr)) {
int x, int y[]);
X++;
chr [x]=strl [i];
ctr[x] =1;
}
for (i=0;i<=x;i++)
Çıktı (Output):
printf("%c\t%d\n", chr[i],ctr[i]);
int strl (char str2[]) {
int i, k=0;
}
int
while (str2[k] !='\0') {
k++;
}
return k;
fonk (char c, char p[],
int i;
for (i=0; i<= x; i++) {
if (p[i]==c) {
y[i]++;
return (1);
}
}
if (i>x) return (0);
int x, int y[]) {
Transcribed Image Text:S3)Aşağıdaki c kodunu takip ederek giriş olarak öğrenci numaranızı girdiğinizde oluşacak çıktıyı yazınız. (Write the output that will appear when you enter your student number as an input by following the C code below.) Giriş için gerçek öğrenci numaranızı kullanın. (Use your real student number for input.) Öğrenci No (Student Number): (buraya yazınız (write here)) #include<stdio.h> int strl (char str2[]); int fonk (char c, char p[], int main() { char strl [80], chr [80]; int n, i, x, ctr [80]; printf("Enter your student number: "); scanf ("%s", strl); n=strl (str1); chr [0]=str1[0]; ctr [0]=1; x=0; for(i=1;i<n; i++) { if(! fonk (strl [i], chr, x, ctr)) { int x, int y[]); X++; chr [x]=strl [i]; ctr[x] =1; } for (i=0;i<=x;i++) Çıktı (Output): printf("%c\t%d\n", chr[i],ctr[i]); int strl (char str2[]) { int i, k=0; } int while (str2[k] !='\0') { k++; } return k; fonk (char c, char p[], int i; for (i=0; i<= x; i++) { if (p[i]==c) { y[i]++; return (1); } } if (i>x) return (0); int x, int y[]) {
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage