Welcome to %1$s. Please log in.

Login with username, password and session length
 
News: Welcome to the TechnoWorldInc! Community!
Techno World Inc - The Best Technical Encyclopedia Online! | Forum | THE TECHNO CLUB [ TECHNOWORLDINC.COM ] | Career/ Jobs Zone | Placement Papers | Infy | Technical - 1

Tanya

Technical - 1


1. int a=2;

f1(a++);

}

f1(int c)

{

printf("%d", c);

}

1)fallacy

f()

{

int a;

void c;f2(&c,&a);





2)a=0;

b=(a=0)?2:3;

a) What will be the value of b? why

b) If in 1st stmt a=0 is replaced by -1, b=?

c) If in second stmt a=0 is replaced by -1, b=?





3)char *a[2]

int const *p;

int *const p;

struct new { int a;int b; *var[5] (struct new)





4)f()

{

int a=2;

f1(a++);

}

f1(int c)

{

printf("%d", c);

}

c=?





5)f1()

{

f(3);}

f(int t)

{

switch(t);

{

case 2: c=3;

case 3: c=4;

case 4: c=5;

case 5: c=6;

default: c=0;}

value of c?





6)Fallacy

int *f1()

{

int a=5;

return &a;

}

f()

int *b=f1()

int c=*b;

}





7)a)Function returning an int pointer

b)Function ptr returning an int ptr

c)Function ptr returning an array of integers

d)array of function ptr returning an array of integers

(See Scham series book)





8)fallacy

int a;

short b;

b=a;





9)Define function ?Explain about arguments?



10)C passes By value or By reference?



11)Post processed code for

abc=1;

b=abc1; (1 or 2 blank lines are given)

strcpy(s,"abc");

z=abc;





12)difference between my-strcpy and strcpy ?check



13)f()

{

int *b;

*b=2;

}





14)Function which gives a pointer to a binary trees const an integer value

at each code, return function of all the nodes in binary tree.(Study)Check





15)Calling refernce draw the diagram of function stack illustrating the

variables in the -----then were pushed on the stack at the point when

function f2 has been introduced

type def struct

{ double x,double y} point;

main( int argc, char *arg[3])

{double a;

int b,c;

f1(a,b);}

f1(double x, int y)

{

point p;

stack int n;

f2(p,x,y)}

f2(point p, double angle)

{ int i,j,k,int max)

}

Recent Updates

[August 11, 2025, 08:33:44 AM]

[August 11, 2025, 08:33:44 AM]

[August 11, 2025, 08:33:44 AM]

[August 11, 2025, 08:33:44 AM]

[May 13, 2025, 08:34:25 AM]

[May 13, 2025, 08:34:25 AM]

[May 13, 2025, 08:34:25 AM]

[April 12, 2025, 08:24:20 AM]

[April 12, 2025, 08:24:20 AM]

[April 12, 2025, 08:24:20 AM]

[April 12, 2025, 08:24:20 AM]

[March 12, 2025, 09:35:30 AM]

[March 12, 2025, 09:35:30 AM]

Subscriptions

<style>@import url('https://fonts.googleapis.com/css?family=Montserrat:700');@import url('https://fonts.googleapis.com/css?family=Montserrat:400'); .form-preview { display: flex; flex-direction: column; justify-content: center; margin-top: 30px; padding: clamp(17px, 5%, 40px) clamp(17px, 7%, 50px); max-width: none; border-radius: 6px; box-shadow: 0 5px 25px rgba(34, 60, 47, 0.25); } .form-preview, .form-preview *{ box-sizing: border-box; } .form-preview .preview-heading { width: 100%; } .form-preview .preview-heading h5{ margin-top: 0; margin-bottom: 0; } .form-preview .preview-input-field { margin-top: 20px; width: 100%; } .form-preview .preview-input-field input { width: 100%; height: 40px; border-radius: 6px; border: 2px solid #e9e8e8; background-color: #fff; outline: none; } .form-preview .preview-input-field input { color: #000000; font-family: "Montserrat"; font-size: 14px; font-weight: 400; line-height: 20px; text-align: center; } .form-preview .preview-input-field input::placeholder { color: #000000; opacity: 1; } .form-preview .preview-input-field input:-ms-input-placeholder { color: #000000; } .form-preview .preview-input-field input::-ms-input-placeholder { color: #000000; } .form-preview .preview-submit-button { margin-top: 10px; width: 100%; } .form-preview .preview-submit-button button { width: 100%; height: 40px; border: 0; border-radius: 6px; line-height: 0px; } .form-preview .preview-submit-button button:hover { cursor: pointer; } </style><form data-v-3a89cb67="" action="https://api.follow.it/subscription-form/QUJrWmZTYXZTNTJ5UDdYb2NaeVlQMmdRWTNQenUrdHdueldtWTNVOGk4WVJhVm94L280bzRPbFE1bVcwNDZ1UWJ4T0VFb0FETWJ4QjhhNGo3ekhGVXNRVmhkbXNnUDlZVkh6RWdmWWlveVVvWDZwbVNCcmpGZUVjMTBNN09WREN8dW1lOTY5VVhCNUtYZTJRdGRZV3ZSQWpaWVVpdGtqbjdNTC9HT2RlMndiaz0=/8" method="post"><div data-v-3a89cb67="" class="form-preview" style="background-color: rgb(255, 255, 255); border-style: solid; border-width: 1px; border-color: rgb(204, 204, 204); position: relative;"><div data-v-3a89cb67="" class="preview-heading"><h5 data-v-3a89cb67="" style="text-transform: none !important; font-family: Montserrat; font-weight: bold; color: rgb(0, 0, 0); font-size: 16px; text-align: center;">Get Latest Tech Updates For Free!</h5></div> <div data-v-3a89cb67="" class="preview-input-field"><input data-v-3a89cb67="" type="email" name="email" required="required" placeholder="Enter email" spellcheck="false" style="text-transform: none !important; font-family: Montserrat; font-weight: normal; color: rgb(0, 0, 0); font-size: 14px; text-align: center; background-color: rgb(255, 255, 255);"></div> <div data-v-3a89cb67="" class="preview-submit-button"><button data-v-3a89cb67="" type="submit" style="text-transform: none !important; font-family: Montserrat; font-weight: bold; color: rgb(255, 255, 255); font-size: 16px; text-align: center; background-color: rgb(96, 131, 190);">Subscribe</button></div></div></form>

Resources

  

Technical - 1

Started by Tanya, June 04, 2007, 05:37:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

  Print     Print       Print