#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[]) {

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education