Error in C : array subscript is not an Integer?

I m a learner in C . while doing the following code Error Msg is array subscript is not an Integer. why that eroor came?

#include<stdio.h>

void main()

{

char char_s[25],array_s[5];

int int_m,array_m[5];

printf("Enter Student name and Mark");

scanf("%s %d",array_s[char_s],&array_m[int_m]);

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.