There is thread where there is variable int i which value have to increased from 0 to 100 inside for loop
but System becomes shutdown when variable 's value is 50 so how to retrieve it's value when ne...
(more)
I am trying to open a file using vim in bash script then write into the file and then close the file.
I am using the following code to do this :
Code:
filename=myname3.txt
xargs vi $filename <<...
(more)
Given a sequence of integers, display the combination of numbers such that their XOR is zero and also at least one number should remain unchanged in the sequence.
Example: 1,2,3
Output:
0 2 2
1 0 1
1 ...
(more)
Does it always happen that stack always grows downwards & heap grows upwards?
If its so, then how does OS keeps the heap area protected from the interference of the stack & vice-versa?
If it...
(more)
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a;
cin>>a;
while(a!=42)
{
printf("output %d\n",a);
scanf(" %d\n",&a);
}
return 0;
}
See when I run th...
(more)