Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

a question

Name: Anonymous 2012-01-09 11:02

This was asked to me in an interview. I am wondering how many of you know this

What is the type of the addition of an unsigned and a signed integer in C?

Name: Anonymous 2012-01-10 4:29

>>16
well, they are both pointers, so you can assign whatever you want in there as long as you cast it. But if you are going to call the function, you better make sure that the type of the pointer matches the type of the function it points to. That would be difficult to manage for an array of function pointers, so it is best to ensure they all have the same argument and return types, or at least have a consistent association between indeces and function types.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List