Cin & cout use globally

How can we use cin & cout outside the main function??

@Shivam01 you can use outside in another function but cant use globally an also whats the point of using it globally… so i hope your doubt is cleared if yes dont forget to mark it as resolved and hit like :smiley:

why I cant use cin & cout globally?? Explain in detail

@Shivam01 hey bro its syntax you just cant , question is like why // is used for comments

okky vatsal thank you