what is the first address that gets stored in stack
according to a C or C++ compiler???? or what will be the
first address that gets stored when we write a C source
code????????
Answers were Sorted based on User's Feedback
Answer / prasant
The function return address is placed on the stack by the
x86 CALL instruction, which stores the current value of the
EIP register.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / valli
the return address of function main will be stored in the
stack
| Is This Answer Correct ? | 8 Yes | 0 No |
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
What is a const pointer?
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
How will you divide two numbers in a MACRO?
FILE PROGRAMMING
Write a program to print the prime numbers from 1 to 100?
#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }
explain what are actual arguments?