How to intalize the structure with same value(not 0) in C : <p>I tried memset to assign all the structure members to 0 as given below, but it didn't work. </p>

<pre><code>struct sample
{
    int a;
    int b;
    int c;
    int d;
    int e; 
    int f;
};

int main(void)
{
    struct sample s1;

    memset(&amp;s1, 1, sizeof(s1));
    printf("%d",s1.e);

    return 0; 
}
</code></pre>
