307 views
0 votes
0 votes
I have read that in Linux, user can do CTRL+D and it's leads to equivalent, but I have an question that user has to press CTRL+D or write CTRL+D in program like a character.

1 Answer

1 votes
1 votes
In Linux user has to press Ctrl +D. It depends whether you are working in one of the editors such as gedit which is basically has a GUI. However, whether the code is written in vi editor which is terminal based or any other editor all commands/programs are executed in the terminal. You have to explicitly press Ctrl +D. It is not a character. Also if you want to exit from the current process/ command you can press Ctrl +Z. You don't need to write anything. Just press it. Yeah. Still, if you haven't understood then go through the comments and take up the discussion. :).Hope it helps u. :)

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
0 answers
2
adwaitLP asked Oct 10, 2016
1,198 views
Very basic C language doubt regarding \5 #include <stdio.h int main() { printf("\5"); return 0; }why the output of this code is ♣??
0 votes
0 votes
1 answer
3
iarnav asked May 5, 2017
699 views
#include <stdio.h int*fun() { intx=5; return&x; } int main(){ int*p=fun(); fflush(stdin); printf("%d",*p); return0; }Please explain this code, how's it's working line by ...
5 votes
5 votes
2 answers
4