Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added detailed explanation and example of static typing in C++ #5486

Merged
merged 1 commit into from Apr 30, 2024

Conversation

N-E-W-T-O-N
Copy link
Contributor

In the current version, it was mentioned that assigning a double type variable's value to int type variable leads to a compile time error, which is false. This will lead to internal type conversion .
The flow of type conversion is as follows
char->int->float->double .
Moving right to left lead to data loss while moving left to right have no data loss .

@N-E-W-T-O-N
Copy link
Contributor Author

Screenshot from 2024-04-11 00-19-23

@kamranahmedse kamranahmedse merged commit e7f8f39 into kamranahmedse:master Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants