y so serious?
BAN USER- 0of 0 votes
Answersint error()
- y so serious? in United States
{
char *buf=(char *) malloc(10,sizeof(char));
return buf;
}
whats the error....?
warm up question| Report Duplicate | Flag | PURGE
NVIDIA
this wont work for "the revrese of Y case"..
- y so serious? February 18, 2012Initialized data – data segment
Statically allocated and global data that are initialized with nonzero values live in the data segment. Each process running the same program has its own data segment. The portion of the executable file containing the data segment is the data section.
Uninitialized data – bss segment
BSS stands for ‘Block Started by Symbol’. Global and statically allocated data that initialized to zero by default are kept in what is called the BSS area of the process. Each process running the same program has its own BSS area. When running, the BSS, data are placed in the data segment. In the executable file, they are stored in the BSS section. For Linux/Unix the format of an executable, only variables that are initialized to a nonzero value occupy space in the executable’s disk file.
small correction
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
using namespace std;
int main()
{
string s = "greateriibblizing";
string temp ="";
string rem = s;
int count = 0;
for(int i = 0; i < rem.length(); i++)
{
if(rem[i] == 'A' ||rem[i] == 'a'||rem[i] == 'E'||rem[i] == 'e'||
rem[i] == 'I'||rem[i] == 'i'||rem[i] == 'O'||rem[i] == 'o'||
rem[i] == 'U'||rem[i] == 'u')
{
count++;
if(count < 4)
continue;
else
{
temp = temp + rem.substr(0,i+1) + "^";
rem = rem.substr(i+1);
i = -1; ///this should be -1 rather than 0
}
}
}
cout<<temp+rem;
getch();
return 0;
}
by tweaking the external merge sort
First sort both the arrays using external merge sort....
Now you have 2 arrays which are sorted....
Now repeat extenal merge sort on both the arrys but
Now while merging this two arrays using external sorting...
if the front elemnets of both the arrays are same then include them in a separate array...(i.e tweak the merge step)...
I agree its O(1)
- y so serious? January 20, 2012could not understand the question please explain
- y so serious? January 18, 2012
this wont work for "the revrese of Y case"..
- y so serious? February 18, 2012