Try this:
#include <stdio.h>
int main (void)
{
printf ("printf is at location %p\n", (void *)printf);
printf ("main is at location %p\n", (void *)main);
return 0;
}
grouping statements. eg: if (i==2) printf ("i=="); printf ("2"); and if (i==2) { printf ("i=="); printf ("2"); } do different things, if i<>2
Objects are stored in heap.
Nothing special, try it: void foo (int frec, int val) { . int x= val; . if (frec) { . . printf ("before recursion x=%d\n", x); . . foo (frec-1, val+1); . . printf ("after recursion x=%d\n", x); . } else { . . printf ("in recursion x=%d\n", x); . } }
switch is a loop which is used for checking various conditions and print corresponding matter.switch(a)//where a is that whose condition you have to check.#includemain(){char a;printf("enter a char.");scanf("%c",&a);switch(a){case 'a':printf("vowel");break;case 'e':printf("vowel");break;case 'i':printf("vowel");break;case 'o':printf("vowel");break;case 'u':printf("vowel");break;default:printf("consonent");}}
syntax: for(initialization;condition;increment) { statements s1; statements s2; } #include<stdio.h> main() { int i,n=5; for(i=0;i<n;i=i+1) { printf("the number s are %d", i); } }
void *array[2]; printf ("array[%d]=%p\n", i, array[i]);
we write printf() b/c it printf or show us the value contained in a value on the screen after pressing ctrl+f9.
A variable is an entity that may change its value. In a program, the result of the processing statements are stored in the computer's memory.
main() { if( !fork() ) printf("Hello"); else printf("World"); } This works fine. if (!printf("hello")) printf("Hello"); else printf(" World\n");
Memory is stored in the brain's grey matter.
grouping statements. eg: if (i==2) printf ("i=="); printf ("2"); and if (i==2) { printf ("i=="); printf ("2"); } do different things, if i<>2
well major difference between scanf and printf is that scanf is an input statment and printf is an output stament scanf is used to take data in from the user and printf is used to display the result on the screen Regards
from main-memory to standard output.
Memory is stored in the brain. Some things like an odd answer to a question in maths are stored in short term memory and others like your birthday are stored in long term memory.
protect information stored in memory stick?
how dcan you protect information stored on memory stick
Objects are stored in heap.