This question is about programming in C. you please help me with a question that is.
This question is about programming in c. can you please help me with an issue that is -
Why do we write - printf ("r = c = %d %d sum = %d\n", sum c, r,);
What we're trying to accomplish here by writing this.
I also wanted to know why we write things within double quotes.
The book programming in C I have, gave no information on this subject.
The way if statements can be nested, of same whiles and fors can
also be nested. To understand the nested loops how to work, watch the
program below:
/ * Demonstration of nested loops * /.
(main)
{
int sum c, r,
for (r = 1; r<= 3="" ;="" r++="" )="" outer="" loop="">=>
{
for (c = 1; c<= 2="" ;="" c++="" )="" inner="" loop="">=>
{
sum = r + c;
printf ("r = c = %d %d sum = %d\n", sum c, r,);
}
}
}
When you run this program, you will get the following result:
r = 1 c = 1 sum = 2
r = 1 c = 2 sum = 3
r = 2 c = 1 sum = 3
r = 2 c = 2 sum = 4
r = 3 c = 1 sum = 4
r = 3 c = 2 sum = 5
In short, in C, a string enclosed in double quotation marks is replaced by a pointer to character to this string somewhere in memory. The first parameter of a call to printf() is a pointer to the format string and the following parameters replace the % {(quoi que) the characters that appear in the format string.} %d represents a whole argument of printing.
HTH,
JW
Tags: Windows
Similar Questions
-
Why are publish you again? You must first answer the question I ask in your original thread.
-
I tried to load Flash Player on my XP computer but have of find undesirable equipped engines, namely Binkiland and Bing, neither of which I wanted to and I can't delete them because they do not appear in the list programs. Can you please help.
Hello Maria,.
Thank you very much for the link, which worked well. Some of the other times that I tried to load Flash Player were presented by the site and also the search engine. You will understand that I am not very computer savy!
Once again thank you.
Chris.
-
I've always been able to open my emails and access their content using Firefox. Now, this morning, I can no longer access the content of my emails, but can still open.
I called "virginmedia" that me told to try to use Solution Explorer, who has worked, and I was told that the problem was with Firefox.It is not ADP, is ABP = d lockB has Pread
AdBlock Plus itself does not actually block anything it's the filters that are blocking. Changing to a subscription different could fix this, or just find out what filter blocks that you want to see or load.
Each filter can be disabled in itself to eliminate the problems like this. In the preferences of the ABP, look at the column "Last shot" after loading reloading the page to see which filters have been used to block items listed on this page - date & time. Selectively disable the filters that were used at the end, to understand that we block you want to see. Uncheck Enabled to disable this filter.
Then, contact the Manager of subscription lists and report filter that is causing your problem, which can be fixed for everyone using this subscription. Contact information is probably at the beginning of the filter list in the preferences.
! Please report any unblocked adverts or problems ! in the forums ( http://forums.lanik.us/ ) ! or via e-mail ( [email protected] ).
Here again, if anyone else has reported this problem will be fixed automatically the next time that your subscription is updated, the update frequency is 5 days for the most popular filter lists. You can do a manual update in the menu Filters > update all subscriptions in the preferences of the ABP.
-
I get the BSOD with f9 code and I do not understand what is? Could you please advice what may cause this? I'm not sure,
It happen when I stop or restart (15 minutes with him saying to stop) followed by BSOD (pilot State power failure).
Once I'm back I can see that Windows has recovered from unexpected shutdown down. Using BlueScreenView tells me that ntoskrnl.exe is the cause.
I was wondering if it has something to do with the USB Ports, because it won't work as a plug-and-Play (need to reboot USB is plugged).I reinstall all the USB drivers.
My system:
ASUS Z170A
nVIDIA GTX 980ti850 M2 OF EVO 250 GB SSD
Intel Core i7 - 4700 k
32 GB of RAM (4 sticks 8 GB)
Windows 7 64 bitAll up to date.
==================================================
Name of the file: ntoskrnl.exe
Address of stack: ntoskrnl.exe + e23f0
Address: Fffff800'0325e000
Address: Fffff800'03844000
Size: 0x005e6000
Time stamp: 0x5708972e
Time string: 09/04/2016 13:46:22
Product name: Microsoft® Windows® Operating System
File description: NT kernel & system
File version: 6.1.7601.23418 (win7sp1_ldr.160408 - 2045)
Company: Microsoft Corporation
Full path: C:\Windows\system32\ntoskrnl.exe
==================================================
==================================================
Dump file: 081316-13447 - 01.dmp
Crash time: 13/08/2016-12:46:05
Bug Check String: DRIVER_POWER_STATE_FAILURE
Bug check code: 0x0000009f
Parameter 1: 00000000'00000003
Parameter 2: fffffa80'1a0f1060
Parameter 3: fffff800'052373 d 8
Parameter 4: fffffa80'1f739c60
Caused by the driver: ntoskrnl.exe
Caused by the address: ntoskrnl.exe + 6f400
File description: NT kernel & system
Product name: Microsoft® Windows® Operating System
Company: Microsoft Corporation
File version: 6.1.7601.23418 (win7sp1_ldr.160408 - 2045)
CPU: x 64
Plant address: ntoskrnl.exe + 6f400
Stack address 1:
The stack address 2:
Address 3 the battery:
Computer name:
Full path: C:\Windows\Minidump\081316-13447-01.dmp
Number of processors: 8
Main version: 15
Minor Version: 7601
Size of the dump file: 1 250 528
Dump of file time: 13/08/2016-12:47
==================================================Hello
There is a possibility that there is a problem with a driver on your PC. Here are a few things to try:- If you know which driver is causing the problem, update.
- Make sure your hardware drivers are updated.
Please keep us updated.
Kind regards.
-
I have 10 updates to windows that will not be installed if you please help me with vista
I have 10 updates to windows that don't will install tried everything. The fixit man says it fixed, but I can not install. This has happened for months. I also downloaded packs 1 and 2. I NEED HELP BADLY. Thank you
Hello. Stevenantinori,
Start > all programs > Windows Update
Click view update history
Under Search Status Failed
Click twice on this list
Details of the error lists error Code #.
You can click on the link "Get help with this error" for more information.
When noting these error Code #, please post back each error code # and KB # it relates to.
Restart Windows Update after each method below
Method 1)
In the meantime, download and run the system update readiness tool
http://Windows.Microsoft.com/en-us/Windows7/what-is-the-system-update-readiness-tool
Restart Windows Update
Method 2)
Run the System File Checker tool
Right-click on command prompt and select run as administrator
Type the following command:
SFC/scannow
Press enter
Note: There is a space between SFC and / scannow
When the scan is complete, restart Windows Update
Method 3)
Reset the contents of the Catroot2 folder
Opened in administrative Mode command prompt window
Type the following command
net stop cryptsvc
Press enter
MD %systemroot%\system32\catroot2.old
Press enter
xcopy %systemroot%\system32\catroot2.old /s %systemroot%\system32\catroot2
Press enterDelete all the contents of the Catroot2 folder
Type
net start cryptsvc
Press enter
Retry Wndows Update
Method 4)
Delete incorrect registry values that may exist
1. Click Start, in the search box, type regedit
2. in the list programs, click on regedit.exe
3. Locate and click the following registry subkey
HKEY_LOCAL_MACHINE\COMPONENTS
4. right click on the COMPONENTS
5. click on export
6. in the bvox of file name, type COMPONENTS
7. in the save box, click Desktop, and then click on save to save the file to your desktop
8. in the Details pane, right-click PendingXmlIdentifier right-click and then click on remove. If the value does not exist, proceed to the next step
9. in the Details pane, right-click on NextQueueEntryIndex and then click on remove. If the value does not exist, proceed to the next step
10. in the Details pane, right-click on AdvancedInstallersNeedResolving and then click on remove. If the value does not exist, continue to the next step.
11. restart the computer
12. try to install the updates again.
Method 5)
Save the Windows Update files
Command prompt opened with administrator privileges
Type the following command and press ENTER after each entry
REGSVR32 WUPS2. DLL/S
REGSVR32 STINKS. DLL/S
REGSVR32 WUAUENG. DLL/S
REGSVR32 WUAPI. DLL/S
REGSVR32 WUCLTUX. DLL/S
REGSVR32 WUWEBV. DLL/S
REGSVR32 JSCRIPT. DLL/S
REGSVR32 MSXML3. DLL/SNew attempt to update windows
I hope this helps.
-
Can you please help me with the manufacturing of the year and the month of the following computers portable
[Personal information]
Hello:
Take a look at the first serial number you posted...
The 4th character from the left is the year of manufacture.
In the first case, it is either 2005, 2015 according to the model (that would be obvious based on the hardware of the laptop has, or when you bought).
The characters of 5th and 6th from the left indicate the week of manufacture.
If you need to take another look at the first serial number because 3-b is probably a 38 (which means the 38th week of the year). Like all the others who have two numbers in the 5th and 6th places.
The 38th week of the year is sometime in September.
-
GTA san andreas does not open with windows 7! How to silve this if you please help me
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas: gta san andreas does not open with windows 7! How to silve this if you please help me
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Review the information from the Windows 7 Compatibility Center.
http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=software&s=Grand%20theft%20autoHe says that version 2 is not compatible.
If Aero is the problem, disable it before installing the game and then turn back on.
I would say as you right-click on Setup and select "Run as Administrator".I hope this helps.
Marilyn
-
can you please help I am running windows vista Home premium and letters on the keyboard are in french is my question mark key e, what is the problem and how to fix it thanks Dan
Your keyboard is set to french. To resolve this problem, look at the right hand of the bar at the bottom and you will see a keyboard. Click on it and press U.S..
I hope this helps. -
Ideas:
- When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you
I tried to download the RegCure as advised, but the problem still exists...
Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.
See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?
I have Windows XP.
really grateful for any advice.
Concerning
Spender 9
OE uses IE settings. Then configure things in IE (margins and others) and it should then apply to the when you print from OE.
Steve
-
Dear Sir/dear Madam, two days ago I registered to use creation of cloud photography package 300 THB per month LR + PS. And I see the promotion for this package 240 THB per month. Could you please help to change promoting 240 THB? Thank you.
This is an open forum, not Adobe support... below to connect with Adobe personnel to help
While the forums are open 24/7 you can't contact Adobe support at any time
Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
Hi I HAV a question... I use PS cs6 m having major problem can you please help me... whenever I have use the filter on sumthng Gallery or if I use a Quick Selection over all things low RAm error levonorgestrol tool... Although I have a huge memory?
-
subscriptions are not yet supported in this country. But I purchase this license. Could you please help check?
Hi Tricia,
In Tiawan, you can buy Creative Cloud for individuals & students and teachers on https://creative.adobe.com/plan .
Creative cloud of the teams available through resellers: http://adobedealreg.force.com/PartnerSearch?lang=en
You can check out: http://www.adobe.com/content/dam/Adobe/en/products/creativecloud/cc/pdfs/cc-availability-m atrix.pdf
I hope this helps.
-
Hello.
I'm enable to launch my CC of Muse Acrobat after I updated 2014.3 for 2015, its says adobe cc muse has stopped working.
Can you please help me on this problem.
Thank you.
Replied to your previous post on the same topic.
Thank you
Sanjit
Maybe you are looking for
-
Error 1068: Unknown connection status: the service dependency or groups could start
Hi all I ave a problem with Vista service pack 2 running on Sony viao with the network. I have access to the internet, but my connection icon has a red X on it with the message "unknown connection status: the dependency service or group could not sta
-
Foglight v7 trial install?
HI -. Where can I find instructions for installation step by step (or video) v7 Foglight installation? In addition, is VMware v 5.5 supported? Type r Björn.
-
Should which adapter I plug my HP P7-1534, which has no HDMI port on my Vizio HD TV? Thank you
-
How to create the cover of the app for my application
Dear, Please help me with step by step tutorial how to create an appcover for my application! I'm kinda noob on C++ and I read the paper, but could not apply! (didn't know where to put the code - C++ part) not Qml I want to put a picture of the asset
-
Official name of CTS-PHD1080P4XS1 softwareID20010
Hi all We present to our customer, a "CSCua44699" Bug ID report regarding. In this document, you must write the official name of the worm 'CTS-PHD1080P4XS1' ID20010 software such as "S01718 - 4.0FINAL [ID:40063] 2010-10-20". "." But we can find it no