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...
Type: Posts; User: Raj 89
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...
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) ;
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()
{
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.
I am facing a problem in the below given code.
int main()
{
printf("\nHello Programmers\n\n") ;
return 0 ;
}
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...
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.
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?
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...
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...
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...
Well thanks christop. I m not that much luky. Well, i am trying to make myself lucky.
Nice... Perfect... A splendid explanation.... If so, there is a change in everything, what is the exact compiler that we can depend on?
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...
Hi All,
Please help me in this.
#include <stdio.h>
int main(void )
{
int i = 1 ;
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?