Search:

Type: Posts; User: Raj 89

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    944

    You just calculated the size of pointer variable...

    You just calculated the size of pointer variable in the function getSize. I think u r using a 64 bit machine and a 64 bit compiler. The size varies with reference to compiler and machine we use. The...
  2. Needed a solution on the following Recursive function

    In the below mentioned code i am having a difficulty to understand the logic behind it.


    #include <stdio.h>

    void call(int n )
    {
    if ( n < 0 )
    {
    call(--n) ;
  3. Replies
    3
    Views
    1,273

    Char * sharing same memory

    Here is my code and I need a clarification in the output of this code:

    Here is my code and I need a clarification in the output of this code:



    #include <stdio.h>

    int main()
    {
  4. Do as per this code. Do not include iostream.h in...

    Do as per this code. Do not include iostream.h in this file. iostream is for c++ format and stdio.h is for c format. Include either any one among those two.
  5. Replies
    4
    Views
    1,709

    Ignoring the stdio.h file in a c file

    I am facing a problem in the below given code.




    int main()
    {
    printf("\nHello Programmers\n\n") ;
    return 0 ;
    }
  6. Replies
    8
    Views
    1,899

    Sir I am just aware of the string width. But i...

    Sir
    I am just aware of the string width. But i am having another doubt. Consider i am using an array name[20] and i am using scanf to get an input string from the user.
    In this case i am not aware...
  7. Replies
    8
    Views
    1,899

    K.. Then i am having a greater doubt. What is the...

    K.. Then i am having a greater doubt. What is the use of providing the field width while using %9s like that.
    As for as in my programs till now i have never used the field width.
  8. Replies
    8
    Views
    1,899

    How i need to allocate a space for it? Can you be...

    How i need to allocate a space for it? Can you be more specific?
    Can you make or point out the corrections in my code?
  9. Replies
    8
    Views
    1,899

    String - Segmentation Fault

    Hi All,


    I have a problem with this code. I am using a gcc compiler and when i compile and execute this code i am getting a seg fault. I am just assigning two variables, name_1 as pointer and...
  10. Replies
    8
    Views
    1,153

    K grumpy. I will go with using %p for pointers....

    K grumpy. I will go with using %p for pointers. But. are there not any differences? In an interview, i had been questioned that " what is the difference between global and static global" .
    What is...
  11. Replies
    8
    Views
    1,153

    Global and static global

    Hi,

    What is the difference between static and global static variable?
    I am not able to find any differences. Well they both seem the same to me.
    Do they differ in storage or the place where they...
  12. Replies
    7
    Views
    4,123

    Well thanks christop. I m not that much luky....

    Well thanks christop. I m not that much luky. Well, i am trying to make myself lucky.
  13. Replies
    7
    Views
    4,123

    Nice... Perfect... A splendid explanation.... If...

    Nice... Perfect... A splendid explanation.... If so, there is a change in everything, what is the exact compiler that we can depend on?
  14. Thread: Memory Segment

    by Raj 89
    Replies
    4
    Views
    1,213

    Hi c99tutorial, Volatile refers that the...

    Hi c99tutorial,

    Volatile refers that the compiler cant have exclusive control over the memory space designated. What does it mean exclusive control here? I am just confused with that. If so the...
  15. Replies
    7
    Views
    4,123

    Post and Pre Increment

    Hi All,

    Please help me in this.


    #include <stdio.h>

    int main(void )
    {
    int i = 1 ;
  16. Thread: Memory Segment

    by Raj 89
    Replies
    4
    Views
    1,213

    Memory Segment

    Hi All,

    I have doubts in storage classes in C. Where does variables declared with auto , static , extern , register , volatile and const stored?

    What is the use of BSS Segment?
Results 1 to 16 of 16