Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion pthread_join crash
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arun Chandrasekaran  
View profile  
 More options May 15 2012, 4:51 am
Newsgroups: comp.programming.threads
From: Arun Chandrasekaran <visionofa...@gmail.com>
Date: Tue, 15 May 2012 01:51:02 -0700 (PDT)
Local: Tues, May 15 2012 4:51 am
Subject: Re: pthread_join crash

> "VAL of i = 0
> ============================
> Why it is printing as VAL of i = 0. Shouldn't it be 1 ? "
> Is it because of undefined behavior caused by the array out bound access as well ?

         i = 0;
         while ( i++ <2) {
              printf("\n VAL of i = %d\n");

Check the arguments for printf.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.