program 1
int main() {
int a = 2;
int b = 3;
swap (&a, &b); //extract the address of a and b
return 0;
}
void swap(int* a, int*b) {
*a = *a + 2; //dereference it and assign new value to a.
*b = *b + 2;
}
In program 1, we need to use *.
Program 2
/*This program adds two integers...
NIC card has no problem.
i uninstall nic driver and reinstall it which may lead to reset tcp/ip configuration.
i uninstall IE7 and reinstall it.
i can ping 127.0.0.1 and any ip outside of the internet.
i use nslookup to resolve google.com and ping and tracert the ip and get proper response from...
Hi, i need help to make ghost image which is pre-installed windows xp home/pro for all kind of computer and laptop.
i have to ghost an image into several different computers for customer everyday.
so, does anyone have instruction to do it?
what do i need?
i made ghost image before, but the...
Hi. my operating system is vista x86 32bit.
4GB of RAM.
i tried the audio driver from the motherboard DVD disc.
i also tried the microsoft's UAA high definition audio driver.
i also downloaded the realtek's latest audio driver.
i downloaded the new mobo driver from mobo official website, but i...
is my computer infected terribly??
i tried my account and administrator account. Both are the same. I click the account picture to login and it get logoff immedately. It never successfully login windows.
anyone know what's wrong with my laptop??
my vista keep freezing at the part where i enter product key in the installation process. vista 32bit.
i removed most pci cards from my pc.
i try both IDE and SATA. Same resulting and freezing.
RAM, CPU, MOBO are fine.
what else i can do? anyone has idea?
1. i want to use something call universal network bootcd or pxe and boot the pc.
2. then use "net use" command to open the network drive and run the ghost.exe command to start ghosting the xp image from the server on the client pc.
what do i need to achieve above task??
1st laptop is pentium 4 m(mobile) - little light
2nd laptop is pentium 4 - little heavy than 1st one,
can i use it to test each other?
they are same socket.
Hi. i want to learn scripting. But i don't know what script language i should learn.
i am a comp technician. Each time i installed a fresh xp and need to do the following:
I have xp ghost image with software package installed. However, Alot of time i installed fresh xp from the scratch for...
Hi. the vista's wired and wireless don't work.
i try to rebuild tcpip because ping 127.0.0.1 failed.
So, i do netsh int ip rest reset.log
and tried reset winsock
doing reset tcpip failed. so i use another way to reset it by delete registry. I deleted tcp/ip and dhcp registry also. i followed...
I can't install any programs in vista. The account type is administrator. Although it's not built-in Administrator account. But regular user with administrator type can install program. When i try to double click the program, it popup a message "Windows can't access the specific device, path or...
computer: Toshiba Laptop
model: Satellite M115-S3094
I downloaded all necessary driver from Toshiba website include chipset, sound, video and etc.
This is their website...
computer: Toshiba Laptop
model: Satellite M115-S3094
I downloaded all necessary driver from Toshiba website include chipset, sound, video and etc.
This is their website...
Hi. My system hangs up and freeze when playing dvd movie at the beginning.
I run diagnostic test on full hardware. The computer hardware has no problem. The only drawback is that the system is old. It is althon 1GH CPU and 256MB RAM and the motherboard is old.
i upgraded the firmware of the...
hi. i bought a ccna labs routers packages from ebay.
the packages has 2 2514 routers and 3 kentrox datasmart 686.
he said this packages can be use simulate T1, or something, i don't remember. i use the routers to practice and it's pretty good.
I haven't touched those 3 kentrox datasmart.
if...
hi. this is my first time going to take the cisco exam.
icnd1- 640-822
i decide to take them separately because too much information and hands-on skills.
i got a question about icnd1. they have SDM to configure the router.
are they going to give SDM simulation in the exam??
i have 2 2514...
hi. when i first install the usb-serial cable, the drive works for xp and vista. It works in the first installation
today, i unplug the usb-serial cable for some reason and re-plug in it and it said doesn't recognize the driver.
i check hardware manager and i find it's "unknown device".
i try...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.