+ 61-7-5641-0117

Our Rating 4.9 out of 5 based on 15243 Votes

# C Programming C Code Fragment Solution

Determine the output of the following C code fragment. You must trace the code to show how you reached the answer.

```#include
int main()
{
int i = 10;
while(i >= 3)    //This loop runs till i value is
//greater than or equal to 3.
{
i = i - 1;       //i value is decremented to 9.
//i value is decremented to 7.
//i value is decremented to 5.
if(i % 2 == 0)   //9 % 2 is not 0.
//7 % 2 is not 0.
//5 % 2 is not 0.
continue;
printf("**\n");   //This will be printed.
//This will be printed.
//This will be printed.
i = i - 1;       //i value is decremented to 8.
//i value is decremented to 6.
//i value is decremented to 4.
if(i == 4)       //i is not 4.
//i is not 4.
//i is equal to 4, and therefore break will be
//executed which will make you
//come out of the loop..=
break;
}
}
//So the output of this code is:
//**
//**
//**

```
{"ft_lang_label":"__label__en","ft_lang_prob":0.8450892,"math_prob":0.9632184,"size":871,"snap":"2020-45-2020-50","text_gpt3_token_len":276,"char_repetition_ratio":0.17070358,"word_repetition_ratio":0.17318435,"special_character_ratio":0.3719862,"punctuation_ratio":0.13846155,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9633887,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-25T02:53:42Z\",\"WARC-Record-ID\":\"<urn:uuid:adf6d889-3c52-46a3-b9fa-a3c2c4bbcf69>\",\"Content-Length\":\"41885\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fcee330d-81f8-47c6-b488-806de92d9e38>\",\"WARC-Concurrent-To\":\"<urn:uuid:5fc9fc52-ae89-4304-9273-05477f3c426f>\",\"WARC-IP-Address\":\"192.124.249.54\",\"WARC-Target-URI\":\"https://www.myassignmenthelp.net/c-assignment-help/c-programming-c-code-fragment-2-solution\",\"WARC-Payload-Digest\":\"sha1:G7KAW3VLZMBCZB25UBELPNFRWNQSWP6I\",\"WARC-Block-Digest\":\"sha1:VWU36OQWFVDBCZRF46JZ45FYNSMSG7L5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141180636.17_warc_CC-MAIN-20201125012933-20201125042933-00640.warc.gz\"}"}