0

27th and 29th line of code is not running..why this happened ?

// marks entry program. /* in this program you will able to choose no..of student..and then input student name and marks and know the marks of student then */ #include<stdio.h> int main() { printf("marks entry program\n"); printf("\nenter the no..of students!"); int no_of_students; scanf("%d",&no_of_students); //above code input the no..of // students in class.. printf("\nenter the names of Students and their marks"); for(int i=1;i<=no_of_students;i++) { printf("\n\n\%d student name :"); char student_name[no_of_students]; scanf("%s",student_name[i]); printf("his / her marks ?"); int marks[no_of_students]; }; }

7th Aug 2020, 8:18 AM
Kunal Gavhane
Kunal Gavhane - avatar
4 Réponses
0
Can you post full code.. ? Pls see this.. https://www.sololearn.com/post/75089/?ref=app
7th Aug 2020, 9:37 AM
Jayakrishna 🇮🇳
+ 6
Yes your code is looking incomplete and u did one mistake after for loop u write printf ("\n\n % d student name "); then u forget to write variable name which value u want to print for example i write Int a=5; and i want to print value of a then i have to write like this printf ("%d", here name of variable );
7th Aug 2020, 5:35 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Last two lines are Missing in output..
7th Aug 2020, 8:19 AM
Kunal Gavhane
Kunal Gavhane - avatar
0
Thnk u so much ☺️
7th Aug 2020, 5:47 PM
Kunal Gavhane
Kunal Gavhane - avatar