0
I can't able call the 49th line function in the c programming
2 Réponses
+ 2
I haven't read the code in detail, but the first error is that on line 54, you are doing
`(ptr + i)->Type == "Savings"`
Using the == operator with strings is undefined behaviour in C. This is because C-strings are actually char-array pointers, and with the == operator, you are comparing the pointers.
Use strcmp() in the <string.h> header instead
https://www.cplusplus.com/reference/cstring/strcmp/
+ 2
"I can't able call the function in the c programming".
Which function?
Which line?
And your code is poorly written. Before writing code make sure to learn how to properly ask questions.