Wednesday, January 12, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


How web browser manages tabs ?

Posted: 11 Jan 2011 10:12 AM PST

Guys,
I wanna ask when we send request for google.com in 4th tab, then why does it always open in 4th tab ?
How does a browser manage this ?
How a browser ensures the request for a page in nth tab always go to nth tab ?

Is there some kind of identifier for each tab ?

Doubt in pointing a variable in c.

Posted: 11 Jan 2011 02:11 AM PST

hello friend's,
Check these codes...
Code:

#include<stdio.h>
void main()
{
    int *x,p=4;
    x=&p;
    printf("%d",*x);
}

and the 2nd one goes here...
Code:

#include<stdio.h>
void main()
{
    char c[]="mohit kumar singh";
    char *str;
    str=&c;
    printf("%s",*str);
}

from the first program i got the output "4".
But don't know why 2nd one will show an Segmentation fault.
Can anyone tell me the reason for this Segmentation fault...?

No comments:

Post a Comment